diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-05-16 19:27:56 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-05-16 19:27:56 +0000 |
| commit | a1c95562fbaf30a7b31a501c4b2deb32a1c78698 (patch) | |
| tree | 2bb0bed6ebbb8e33656851f7b6461499965b0540 /render.c | |
| parent | selection: update: don't assert on 'start' being set (diff) | |
term: scrolling: clear selection *before* scrolling
We normally don't clear the selection when scrolling. The exception is
when the selection covers re-used rows. I.e. rows that we scroll in
and clear.
In this case we cancel the selection (we _could_ modify it and keep as
much as possible and only remove the re-used rows...). We must do
this *before* scrolling, since scrolling will swap rows (when there's
a scrolling region). When this happens, the selection is "corrupted",
and canceling it afterwards will not work.
Diffstat (limited to 'render.c')
0 files changed, 0 insertions, 0 deletions
