about summary refs log tree commit diff
path: root/Src/lex.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2010-04-28 08:55:35 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2010-04-28 08:55:35 +0000
commitedc01c0455e894f0ba3ff1caa5b545110271d3ac (patch)
treeb20cb1d67c9788a0a5fff227f3b73366a2d13889 /Src/lex.c
parent443d873258f7749c32813073dc8b508ab6f08a7a (diff)
downloadzsh-edc01c0455e894f0ba3ff1caa5b545110271d3ac.tar.gz
zsh-edc01c0455e894f0ba3ff1caa5b545110271d3ac.tar.xz
zsh-edc01c0455e894f0ba3ff1caa5b545110271d3ac.zip
Mikael: 27929 + doc: global aliases shouldn't trigger HIST_IGNORE_SPACE
Diffstat (limited to 'Src/lex.c')
-rw-r--r--Src/lex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/lex.c b/Src/lex.c
index 8f432515c..83257da8c 100644
--- a/Src/lex.c
+++ b/Src/lex.c
@@ -1774,7 +1774,7 @@ exalias(void)
 		if (an && !an->inuse &&
 		    ((an->node.flags & ALIAS_GLOBAL) || incmdpos || inalmore)) {
 		    inpush(an->text, INP_ALIAS, an);
-		    if (an->text[0] == ' ')
+		    if (an->text[0] == ' ' && !(an->node.flags & ALIAS_GLOBAL))
 			aliasspaceflag = 1;
 		    lexstop = 0;
 		    if (zshlextext == copy)