zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: fix spaceinline() to fix yank (3.0.5 & 3.1.2)
@ 1998-05-12 18:43 Wayne Davison
  0 siblings, 0 replies; only message in thread
From: Wayne Davison @ 1998-05-12 18:43 UTC (permalink / raw)
  To: zsh-workers

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---


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-05-12 18:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-05-12 18:43 PATCH: fix spaceinline() to fix yank (3.0.5 & 3.1.2) Wayne Davison

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).