mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-08 09:14:22 +01:00
Sync OpenBSD patchset 1046:
Always remember last cursor position when moving up or down, not just for if crossing zero length lines. From Itay Perl.
This commit is contained in:
parent
166681eee9
commit
e678ba3943
@ -1629,7 +1629,7 @@ window_copy_cursor_up(struct window_pane *wp, int scroll_only)
|
||||
|
||||
oy = screen_hsize(data->backing) + data->cy - data->oy;
|
||||
ox = window_copy_find_length(wp, oy);
|
||||
if (ox != 0) {
|
||||
if (data->cx != ox) {
|
||||
data->lastcx = data->cx;
|
||||
data->lastsx = ox;
|
||||
}
|
||||
@ -1671,7 +1671,7 @@ window_copy_cursor_down(struct window_pane *wp, int scroll_only)
|
||||
|
||||
oy = screen_hsize(data->backing) + data->cy - data->oy;
|
||||
ox = window_copy_find_length(wp, oy);
|
||||
if (ox != 0) {
|
||||
if (data->cx != ox) {
|
||||
data->lastcx = data->cx;
|
||||
data->lastsx = ox;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user