summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-01-03 18:12:15 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-01-03 18:12:15 +0000
commit851663282a3ff6ca39412bd0ab7481b14e66f495 (patch)
treeeb28a03c4b789207690875c845762183edb48213
parent80bb48a40004761fefa3f8f433b8450bda605e80 (diff)
downloadzsh-851663282a3ff6ca39412bd0ab7481b14e66f495.tar.gz
zsh-851663282a3ff6ca39412bd0ab7481b14e66f495.tar.xz
zsh-851663282a3ff6ca39412bd0ab7481b14e66f495.zip
Greg Klanderman: 26159: fix appending of kills
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/zle_utils.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2654d7dea..2df340165 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-01-03  Peter Stephenson  <p.w.stephenson@ntlworld.com>
+
+	* Greg Klanderman: 26159: Src/Zle/zle_utils.c: CUT_RAW should be
+	CUT_REPLACE for multiple kills to append.
+
 2008-12-30  Clint Adams  <clint@zsh.org>
 
 	* 26202: Functions/Misc/run-help: show zshmodules(1) for echotc,
diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c
index 4c02d6013..2b2da7dcd 100644
--- a/Src/Zle/zle_utils.c
+++ b/Src/Zle/zle_utils.c
@@ -546,7 +546,7 @@ cuttext(ZLE_STRING_T line, int ct, int flags)
 	cutbuf.buf = (ZLE_STRING_T)zalloc(ZLE_CHAR_SIZE);
 	cutbuf.buf[0] = ZWC('\0');
 	cutbuf.len = cutbuf.flags = 0;
-    } else if (!(lastcmd & ZLE_KILL) || (flags & CUT_RAW)) {
+    } else if (!(lastcmd & ZLE_KILL) || (flags & CUT_REPLACE)) {
 	Cutbuffer kptr;
 	if (!kring) {
 	    kringsize = KRINGCTDEF;