summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2018-08-29 18:54:24 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2018-08-29 18:54:24 +0000
commitf2d9015f36a0978844dc7ce404331f39da74bf29 (patch)
treeab87760291249d844299a3d8aedf8be4e15b7aa7 /usr.bin/tmux
parent4c8e5a0c1638b02581ad9a2caafc81aea17d81b5 (diff)
Reset line flag when clearing selection, GitHub issue 1454.
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 cd3ee1c4cf0..c3e99d5d57c 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.196 2018/08/23 15:45:05 nicm Exp $ */
+/* $OpenBSD: window-copy.c,v 1.197 2018/08/29 18:54:23 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1810,6 +1810,7 @@ window_copy_clear_selection(struct window_pane *wp)
screen_clear_selection(&data->screen);
data->cursordrag = CURSORDRAG_NONE;
+ data->lineflag = LINE_SEL_NONE;
py = screen_hsize(data->backing) + data->cy - data->oy;
px = window_copy_find_length(wp, py);