about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2001-10-22 15:34:28 +0000
committerWayne Davison <wayned@users.sourceforge.net>2001-10-22 15:34:28 +0000
commitb2e03d7ba5a9bc312af9d21fc41a8fe4b3bbe96f (patch)
tree1c2080983c3f63ee48c3ff030937ec199d915047 /Src
parent4b76c491c942f655e7cf013fa63febbd751a1c08 (diff)
downloadzsh-b2e03d7ba5a9bc312af9d21fc41a8fe4b3bbe96f.tar.gz
zsh-b2e03d7ba5a9bc312af9d21fc41a8fe4b3bbe96f.tar.xz
zsh-b2e03d7ba5a9bc312af9d21fc41a8fe4b3bbe96f.zip
Applied the interactive-comment fix for HIST_IGNORE_SPACE.
Diffstat (limited to 'Src')
-rw-r--r--Src/hist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/hist.c b/Src/hist.c
index 6ce3651dc..4dacdd337 100644
--- a/Src/hist.c
+++ b/Src/hist.c
@@ -971,14 +971,14 @@ prepnexthistent(void)
 static int
 should_ignore_line(Eprog prog)
 {
-    if (!prog)
-	return 0;
-
     if (isset(HISTIGNORESPACE)) {
 	if (*chline == ' ' || aliasspaceflag)
 	    return 1;
     }
 
+    if (!prog)
+	return 0;
+
     if (isset(HISTNOFUNCTIONS)) {
 	Wordcode pc = prog->prog;
 	wordcode code = *pc;