grid: reflow: make sure cursor is within the visible screen area

Even though we translate the cursor position from the old grid
coordinates to the new, the cursor may _still_ end up outside the
visible area.

Make sure it doesn’t.
This commit is contained in:
Daniel Eklöf 2020-09-09 18:40:06 +02:00
parent fc510d423b
commit a1ab31eea5
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 5 additions and 6 deletions

View file

@ -114,6 +114,7 @@
**not** include `Alt`.
* Clipboard (or primary selection) is now cleared when receiving an
OSC-52 command with an invalid base64 encoded payload.
* Cursor position being set outside the grid when reflowing text.
### Security