From: nicm Date: Wed, 29 Aug 2018 18:54:23 +0000 (+0000) Subject: Reset line flag when clearing selection, GitHub issue 1454. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1416a56c2a9fadd4496d354925b98f38fa971090;p=openbsd Reset line flag when clearing selection, GitHub issue 1454. --- 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 @@ -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);