Fix selection not being extended by right click when scrolling down

Fix #2443
This commit is contained in:
Kovid Goyal 2020-03-18 20:17:32 +05:30
parent 3bff3bcbe4
commit b9ad62226e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1707,7 +1707,7 @@ bool
screen_has_selection(Screen *self) {
if (is_selection_empty(&self->selection)) return false;
IterationData idata;
iteration_data(self, &self->selection, &idata, 0, true);
iteration_data(self, &self->selection, &idata, -self->historybuf->count, true);
if (iteration_data_is_empty(self, &idata)) return false;
return true;
}