Sync OpenBSD patchset 618:

Update the selection properly after goto line or searching.
This commit is contained in:
Tiago Cunha 2010-01-28 22:42:36 +00:00
parent c153a43299
commit 22dd0beaa0

View File

@ -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);
}