aboutsummaryrefslogtreecommitdiff
path: root/window-copy.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2010-12-11 17:57:28 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2010-12-11 17:57:28 +0000
commit0b8ce56d733d09db0787e91b5347d34f026a3c27 (patch)
tree34c1a85b171bd3a7e42763407790eb6676620a61 /window-copy.c
parent095ffe9cd1465b2eab2ae25f17453f531bf9598b (diff)
downloadrtmux-0b8ce56d733d09db0787e91b5347d34f026a3c27.tar.gz
rtmux-0b8ce56d733d09db0787e91b5347d34f026a3c27.tar.bz2
rtmux-0b8ce56d733d09db0787e91b5347d34f026a3c27.zip
Fix rectangle copy to behave like emacs - the cursor is not part of the
selection on the right edge but on the left it is.
Diffstat (limited to 'window-copy.c')
-rw-r--r--window-copy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/window-copy.c b/window-copy.c
index 2ef93278..0bebd6ad 100644
--- a/window-copy.c
+++ b/window-copy.c
@@ -1,4 +1,4 @@
-/* $Id: window-copy.c,v 1.124 2010-09-18 15:41:18 tcunha Exp $ */
+/* $Id: window-copy.c,v 1.125 2010-12-11 17:57:28 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -1267,8 +1267,8 @@ window_copy_copy_selection(struct window_pane *wp, struct session *sess)
/* Cursor is on the left. */
lastex = data->selx + 1;
restex = data->selx + 1;
- firstsx = data->cx + 1;
- restsx = data->cx + 1;
+ firstsx = data->cx;
+ restsx = data->cx;
}
} else {
/*