mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-06 09:01:13 +02:00
Applied the interactive-comment fix for HIST_IGNORE_SPACE.
This commit is contained in:
parent
4b76c491c9
commit
b2e03d7ba5
1 changed files with 3 additions and 3 deletions
|
@ -971,14 +971,14 @@ prepnexthistent(void)
|
||||||
static int
|
static int
|
||||||
should_ignore_line(Eprog prog)
|
should_ignore_line(Eprog prog)
|
||||||
{
|
{
|
||||||
if (!prog)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
if (isset(HISTIGNORESPACE)) {
|
if (isset(HISTIGNORESPACE)) {
|
||||||
if (*chline == ' ' || aliasspaceflag)
|
if (*chline == ' ' || aliasspaceflag)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!prog)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (isset(HISTNOFUNCTIONS)) {
|
if (isset(HISTNOFUNCTIONS)) {
|
||||||
Wordcode pc = prog->prog;
|
Wordcode pc = prog->prog;
|
||||||
wordcode code = *pc;
|
wordcode code = *pc;
|
||||||
|
|
Loading…
Reference in a new issue