If you select some text from a wrapped line, where the selection is of
stuff before the final wrap of the line, the final chraracter gets
stripped on copy. This patch fixes the problem for me.
--
Micah J. Cowan
http://micah.cowan.name/
Index: sf/window-copy.c
===================================================================
--- sf.orig/window-copy.c 2010-02-16 10:16:04.000000000 -0800
+++ sf/window-copy.c 2010-02-16 10:17:17.000000000 -0800
@@ -1222,7 +1222,7 @@
}
/* Only add a newline if the line wasn't wrapped. */
- if (!wrapped) {
+ if (!wrapped || ex != xx) {
*buf = xrealloc(*buf, 1, (*off) + 1);
(*buf)[(*off)++] = '\n';
}
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users