From: nicm Date: Mon, 29 May 2017 07:58:33 +0000 (+0000) Subject: Do not factor in screen_hsize() for the visible copy mode screen when X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=04b3cdba6a8817604ae92511e97a01f84556d544;p=openbsd Do not factor in screen_hsize() for the visible copy mode screen when adjusting the selection, it should never have any useful history (and when it does, after resize, we shouldn't use it). From Michal Mazurek. --- diff --git a/usr.bin/tmux/window-copy.c b/usr.bin/tmux/window-copy.c index 339e9d4a7d1..e7bb44be73e 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.175 2017/05/12 13:00:56 nicm Exp $ */ +/* $OpenBSD: window-copy.c,v 1.176 2017/05/29 07:58:33 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -1458,7 +1458,7 @@ window_copy_adjust_selection(struct window_pane *wp, u_int *selx, u_int *sely) } *selx = sx; - *sely = screen_hsize(s) + sy; + *sely = sy; return (relpos); }