1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-06-02 13:26:03 +02:00

Fix HIST_NO_SPACE when INTERACTIVE_COMMENTS is set and we get a

comment.
This commit is contained in:
Wayne Davison 2001-10-15 18:42:52 +00:00
parent 577ebe0b8a
commit 34c4e565d0

View File

@ -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;