about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-03-26 10:02:23 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-03-26 10:02:23 +0000
commit5687662ec1e4fab16e192613df4fbce12cbd0ef6 (patch)
treed21e0fb8b31a55083dcb08ab05b0bcc6d1452350
parentf7ca3b8e17b2c56f16765a5cbb36358276cc215e (diff)
downloadzsh-5687662ec1e4fab16e192613df4fbce12cbd0ef6.tar.gz
zsh-5687662ec1e4fab16e192613df4fbce12cbd0ef6.tar.xz
zsh-5687662ec1e4fab16e192613df4fbce12cbd0ef6.zip
handle colons in xor lists (13770)
-rw-r--r--ChangeLog2
-rw-r--r--Src/Zle/computil.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5a2ad86b2..4b1c79087 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2001-03-26  Sven Wischnowsky  <wischnow@zsh.org>
 
+	* 13770: Src/Zle/computil.c: handle colons in xor lists
+
 	* 13768: Completion/Core/_main_complete,
 	Completion/Core/_setup: unset ZLS_COLORS if list-colors not
 	set
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c
index 4afc492dc..063ad4c2f 100644
--- a/Src/Zle/computil.c
+++ b/Src/Zle/computil.c
@@ -821,7 +821,7 @@ parse_cadef(char *nam, char **args)
 		    xor = (char **) zalloc(2 * sizeof(char *));
 		    xor[1] = NULL;
 		}
-		xor[xnum] = ztrdup(name);
+		xor[xnum] = ztrdup(rembslashcolon(name));
 	    }
 	    if (c == ':') {
 		/* There's at least one argument. */