Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: fix spaceinline() to fix yank (3.0.5 & 3.1.2)



This is a patch for 3.0.5 that also needs to be applied to
3.1.2-zephram4 (though it will be offset by 30 lines or so).  It
fixes an annoying bug in yank where the mark gets set to the end of
the yanked text rather than the beginning.  The root cause of the
bug is that spaceinline() is moving the mark when "mark >= cs",
instead of just "mark > cs".

..wayne..

---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
Index: zle_utils.c
@@ -56,7 +56,7 @@
     ll += ct;
     line[ll] = '\0';
 
-    if (mark >= cs)
+    if (mark > cs)
 	mark += ct;
 }
 
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---



Messages sorted by: Reverse Date, Date, Thread, Author