about summary refs log tree commit diff
path: root/Src/hist.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2001-10-15 18:42:52 +0000
committerWayne Davison <wayned@users.sourceforge.net>2001-10-15 18:42:52 +0000
commit34c4e565d0162dbb4cbe3e94332c6d07637732e1 (patch)
tree9d137f19047ec7c62297c66f3b2f77e53cd4fdcf /Src/hist.c
parent577ebe0b8ad4289221be0b4bc2bb03aea8477cfc (diff)
downloadzsh-34c4e565d0162dbb4cbe3e94332c6d07637732e1.tar.gz
zsh-34c4e565d0162dbb4cbe3e94332c6d07637732e1.tar.xz
zsh-34c4e565d0162dbb4cbe3e94332c6d07637732e1.zip
Fix HIST_NO_SPACE when INTERACTIVE_COMMENTS is set and we get a
comment.
Diffstat (limited to 'Src/hist.c')
-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;