about summary refs log tree commit diff
path: root/Src/lex.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-02-24 13:48:47 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-02-24 13:48:47 +0000
commit655370ff3c2c2136e58249fd774d6898381c3df5 (patch)
tree7f450b7b136e2af58dd7d0fdb17614f91c78e53d /Src/lex.c
parent4bfb5daa7ee0f3d2318ddd244e70fcb169f41e64 (diff)
downloadzsh-655370ff3c2c2136e58249fd774d6898381c3df5.tar.gz
zsh-655370ff3c2c2136e58249fd774d6898381c3df5.tar.xz
zsh-655370ff3c2c2136e58249fd774d6898381c3df5.zip
28799: lexical analyser didn't stop early enough with completion words
Diffstat (limited to 'Src/lex.c')
-rw-r--r--Src/lex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/lex.c b/Src/lex.c
index 8636a6fb4..f4b22370b 100644
--- a/Src/lex.c
+++ b/Src/lex.c
@@ -1825,7 +1825,7 @@ exalias(void)
 	    int zp = lexflags;
 
 	    gotword();
-	    if (zp == 1 && !lexflags) {
+	    if ((zp & LEXFLAGS_ZLE) && !lexflags) {
 		if (zshlextext == copy)
 		    zshlextext = tokstr;
 		return 0;