about summary refs log tree commit diff
path: root/Src/lex.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2010-12-14 10:40:42 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2010-12-14 10:40:42 +0000
commitef5cf45780f83630e36a8b9bee370d88fddb6610 (patch)
treec42ec0592b7e408d8170d69988a7fa12f9267c69 /Src/lex.c
parentebcead7543194819ef3bbd47ef384cabae3c59fc (diff)
downloadzsh-ef5cf45780f83630e36a8b9bee370d88fddb6610.tar.gz
zsh-ef5cf45780f83630e36a8b9bee370d88fddb6610.tar.xz
zsh-ef5cf45780f83630e36a8b9bee370d88fddb6610.zip
unposted: another neatening of lexflags use in ZLE
Diffstat (limited to 'Src/lex.c')
-rw-r--r--Src/lex.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/Src/lex.c b/Src/lex.c
index a4d55f49a..3d70c5bbf 100644
--- a/Src/lex.c
+++ b/Src/lex.c
@@ -587,13 +587,20 @@ add(int c)
     }
 }
 
-#define SETPARBEGIN {if (lexflags && !(inbufflags & INP_ALIAS) && zlemetacs >= zlemetall+1-inbufct) parbegin = inbufct;}
-#define SETPAREND {\
-	    if (lexflags && !(inbufflags & INP_ALIAS) && parbegin != -1 && parend == -1) {\
-		if (zlemetacs >= zlemetall + 1 - inbufct)\
-		    parbegin = -1;\
-		else\
-		    parend = inbufct;} }
+#define SETPARBEGIN {							\
+	if ((lexflags & LEXFLAGS_ZLE) && !(inbufflags & INP_ALIAS) &&	\
+	    zlemetacs >= zlemetall+1-inbufct)				\
+	    parbegin = inbufct;		      \
+    }
+#define SETPAREND {						      \
+	if ((lexflags & LEXFLAGS_ZLE) && !(inbufflags & INP_ALIAS) && \
+	    parbegin != -1 && parend == -1) {			      \
+	    if (zlemetacs >= zlemetall + 1 - inbufct)		      \
+		parbegin = -1;					      \
+	    else						      \
+		parend = inbufct;				      \
+	}							      \
+    }
 
 /*
  * Return 1 for math, 0 for a command, 2 for an error.  If it couldn't be