mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-07-11 10:13:27 +00:00
Fix copying of selection after selection has been scrolled off history buffer raising an error
Fixes #4713
This commit is contained in:
parent
f652b23169
commit
8d36fb9edc
2 changed files with 3 additions and 0 deletions
|
|
@ -148,6 +148,8 @@ Detailed list of changes
|
|||
|
||||
- macOS: Fix the mouse cursor being set to arrow after switching desktops or toggling full screen (:pull:`4716`)
|
||||
|
||||
- Fix copying of selection after selection has been scrolled off history buffer raising an error (:iss:`4713`)
|
||||
|
||||
|
||||
0.24.2 [2022-02-03]
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
|
|
@ -2334,6 +2334,7 @@ iteration_data(const Screen *self, const Selection *sel, IterationData *ans, int
|
|||
ans->y += self->scrolled_by; ans->y_limit += self->scrolled_by;
|
||||
}
|
||||
ans->y = MAX(ans->y, min_y);
|
||||
ans->y_limit = MAX(ans->y, ans->y_limit); // iteration is from y to y_limit
|
||||
}
|
||||
|
||||
static XRange
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue