Update of /cvsroot/tmux/tmux
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv4237
Modified Files:
screen.c window-copy.c
Log Message:
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.
Index: window-copy.c
===================================================================
RCS file: /cvsroot/tmux/tmux/window-copy.c,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -d -r1.124 -r1.125
--- window-copy.c 18 Sep 2010 15:41:18 -0000 1.124
+++ window-copy.c 11 Dec 2010 17:57:28 -0000 1.125
@@ -1267,8 +1267,8 @@
/* 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 {
/*
Index: screen.c
===================================================================
RCS file: /cvsroot/tmux/tmux/screen.c,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -d -r1.102 -r1.103
--- screen.c 19 Jul 2010 18:31:42 -0000 1.102
+++ screen.c 11 Dec 2010 17:57:28 -0000 1.103
@@ -287,7 +287,7 @@
*/
if (sel->ex < sel->sx) {
/* Cursor (ex) is on the left. */
- if (px <= sel->ex)
+ if (px < sel->ex)
return (0);
if (px > sel->sx)
@@ -297,7 +297,7 @@
if (px < sel->sx)
return (0);
- if (px >= sel->ex)
+ if (px > sel->ex)
return (0);
}
} else {
------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages,
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs