From: nicm Date: Mon, 3 Sep 2018 08:47:27 +0000 (+0000) Subject: Fix selection test, from Takeshi Banse. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=abd886149abc425d463678ea9240129352008068;p=openbsd Fix selection test, from Takeshi Banse. --- diff --git a/usr.bin/tmux/window-copy.c b/usr.bin/tmux/window-copy.c index c3e99d5d57c..80be2e6c588 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.197 2018/08/29 18:54:23 nicm Exp $ */ +/* $OpenBSD: window-copy.c,v 1.198 2018/09/03 08:47:27 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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) ||