summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-07-23 17:03:48 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-07-23 17:03:48 +0000
commitdac4f562ad21bcc57d24dc8ecbe5732ffe1dda62 (patch)
tree852e295580fb7959ac42291127046daff5120e67 /usr.bin/tmux
parent20d6ab1517afdc5341a2bc8c80e0b259fca8a06b (diff)
Redraw after starting selection to correctly remove any existing selection.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/window-copy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/window-copy.c b/usr.bin/tmux/window-copy.c
index f9afc385b44..41d3a0eb6da 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.6 2009/07/12 16:15:34 nicm Exp $ */
+/* $OpenBSD: window-copy.c,v 1.7 2009/07/23 17:03:47 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -194,6 +194,7 @@ window_copy_key(struct window_pane *wp, struct client *c, int key)
break;
case MODEKEYCMD_STARTSELECTION:
window_copy_start_selection(wp);
+ window_copy_redraw_screen(wp);
break;
case MODEKEYCMD_CLEARSELECTION:
screen_clear_selection(&data->screen);