selection: adjust start point when the selection changes direction

Without this, the initial cell will always be selected, regardless of
how the selection is moved to the left or right.

With this patch, the initial cell will only be selected while the
selection is being made in the original direction. Changing direction
of the selection moves the start point to next/previous character.
This commit is contained in:
Daniel Eklöf 2020-08-12 18:50:49 +02:00
parent 156cce6ef6
commit 8808dd28f2
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 41 additions and 0 deletions

View file

@ -60,6 +60,8 @@
* Viewport sometimes not moving when doing a scrollback search.
* Crash when cancelling a scrollback search and the window had been
resized while searching.
* Selection start point not moving when the selection changes
direction.
### Security