aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornicm <nicm>2017-05-29 07:58:33 +0000
committernicm <nicm>2017-05-29 07:58:33 +0000
commit1883d299bf853dac75cd67c012b9f074b0a4dbef (patch)
tree3fd8a94eff4c4f3d49f5ddc28c1d756fd2f6c128
parent15253448af2dc15dcfe17add5cedafaebdd4d62f (diff)
downloadrtmux-1883d299bf853dac75cd67c012b9f074b0a4dbef.tar.gz
rtmux-1883d299bf853dac75cd67c012b9f074b0a4dbef.tar.bz2
rtmux-1883d299bf853dac75cd67c012b9f074b0a4dbef.zip
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.
-rw-r--r--window-copy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/window-copy.c b/window-copy.c
index 6d1a9f69..c8807c99 100644
--- a/window-copy.c
+++ b/window-copy.c
@@ -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);
}