summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-07-09 15:02:01 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-07-09 15:02:01 +0000
commitf7ef75a2f5d760947ee9d8e2ddd5a530f3907e65 (patch)
tree795cea6b52191e115cae08a842d27e554a32d6ac /usr.bin
parente1f234229350c88cdc49603d9d07548a9e92dacf (diff)
Stop in the right place so all the lines selected are copied. Reported by Kalle
Olavi Niemitalo, thanks.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/window-copy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/window-copy.c b/usr.bin/tmux/window-copy.c
index 400738192d7..e3cc2db8037 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.2 2009/07/02 16:15:43 nicm Exp $ */
+/* $OpenBSD: window-copy.c,v 1.3 2009/07/09 15:02:00 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -443,7 +443,7 @@ window_copy_copy_selection(struct window_pane *wp, struct client *c)
xx = window_copy_find_length(wp, sy);
window_copy_copy_line(wp, &buf, &off, sy, sx, xx);
if (ey - sy > 1) {
- for (i = sy + 1; i < ey - 1; i++) {
+ for (i = sy + 1; i < ey; i++) {
xx = window_copy_find_length(wp, i);
window_copy_copy_line(wp, &buf, &off, i, 0, xx);
}