Fix selection not updating properly while scrolling

Fixes #2442
This commit is contained in:
Kovid Goyal
2020-03-18 18:48:59 +05:30
parent a06fdad034
commit 3bff3bcbe4
4 changed files with 5 additions and 1 deletions
+1
View File
@@ -2188,6 +2188,7 @@ scroll(Screen *self, PyObject *args) {
bool
screen_is_selection_dirty(Screen *self) {
IterationData q;
if (self->scrolled_by != self->last_rendered.scrolled_by) return true;
iteration_data(self, &self->selection, &q, 0, true);
if (memcmp(&q, &self->last_rendered.selection, sizeof(IterationData)) != 0) return true;
iteration_data(self, &self->url_range, &q, 0, true);