Next-word, when it wraps at the end-of-line, will never stop at the
first character, even if it's a word character. This tiny patch fixes that.
This patch is meant to apply after the word-separators patch, though the
glitch is from before that. The word-separators patch merged the two
search loops into one (since they both now needed to check for
end-of-line), so a fix for the code without that patch would be at a
different nesting level (but would otherwise be the same).
--
Micah J. Cowan
http://micah.cowan.name/
Index: window-copy.c
===================================================================
--- window-copy.c.orig
+++ window-copy.c
@@ -1451,8 +1451,8 @@
py = screen_hsize(back_s) + data->cy - data->oy;
xx = window_copy_find_length(wp, py);
- }
- px++;
+ } else
+ px++;
}
expected = !expected;
} while (expected == 1);
@@ -1490,8 +1490,8 @@
py = screen_hsize(back_s) + data->cy - data->oy;
xx = window_copy_find_length(wp, py);
- }
- px++;
+ } else
+ px++;
}
expected = !expected;
} while (expected == 0);
------------------------------------------------------------------------------
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