mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-23 16:43:11 +01:00
Sync OpenBSD patchset 618:
Update the selection properly after goto line or searching.
This commit is contained in:
parent
c153a43299
commit
22dd0beaa0
@ -1,4 +1,4 @@
|
||||
/* $Id: window-copy.c,v 1.96 2010-01-28 22:41:45 tcunha Exp $ */
|
||||
/* $Id: window-copy.c,v 1.97 2010-01-28 22:42:36 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -492,6 +492,7 @@ window_copy_scroll_to(struct window_pane *wp, u_int px, u_int py)
|
||||
}
|
||||
data->oy = gd->hsize - offset;
|
||||
|
||||
window_copy_update_selection(wp);
|
||||
window_copy_redraw_screen(wp);
|
||||
}
|
||||
|
||||
@ -690,6 +691,7 @@ window_copy_goto_line(struct window_pane *wp, const char *linestr)
|
||||
return;
|
||||
|
||||
data->oy = lineno;
|
||||
window_copy_update_selection(wp);
|
||||
window_copy_redraw_screen(wp);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user