Do not factor in screen_hsize() for the visible copy mode screen when
authornicm <nicm@openbsd.org>
Mon, 29 May 2017 07:58:33 +0000 (07:58 +0000)
committernicm <nicm@openbsd.org>
Mon, 29 May 2017 07:58:33 +0000 (07:58 +0000)
adjusting the selection, it should never have any useful history (and
when it does, after resize, we shouldn't use it). From Michal Mazurek.

usr.bin/tmux/window-copy.c

index 339e9d4..e7bb44b 100644 (file)
@@ -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 <nicholas.marriott@gmail.com>
@@ -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);
 }