diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-01-25 21:37:41 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-01-25 21:37:41 +0000 |
commit | 51494282de20f797dd81eb9956075266c267186d (patch) | |
tree | e1bda434f6e853abbbf1ca0bba917a50cbee5f12 /usr.bin/tmux | |
parent | 599a89ee77bd9e44e67fe0e7892a748ab57210ea (diff) |
Update the selection properly after goto line or searching.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/window-copy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/window-copy.c b/usr.bin/tmux/window-copy.c index e48cd14cbb7..54ca657fa7f 100644 --- a/usr.bin/tmux/window-copy.c +++ b/usr.bin/tmux/window-copy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window-copy.c,v 1.37 2010/01/25 21:33:39 nicm Exp $ */ +/* $OpenBSD: window-copy.c,v 1.38 2010/01/25 21:37:40 nicm 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); } |