mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 10:08:47 +00: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