From 9bab73f48991f7f200f209a95d6a95e44f5769d0 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 3 Sep 2018 08:47:27 +0000 Subject: [PATCH] Fix selection test, from Takeshi Banse. --- window-copy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/window-copy.c b/window-copy.c index 6ef4b29d..39bf2c2e 100644 --- a/window-copy.c +++ b/window-copy.c @@ -2082,7 +2082,7 @@ window_copy_cursor_up(struct window_pane *wp, int scroll_only) } } - if (data->screen.sel != NULL || !data->rectflag) { + if (data->screen.sel == NULL || !data->rectflag) { py = screen_hsize(data->backing) + data->cy - data->oy; px = window_copy_find_length(wp, py); if ((data->cx >= data->lastsx && data->cx != px) ||