From 9e7b3f1d255a132a5cb3c4627ff9b3b6626b1e56 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Wed, 19 Jul 2000 20:42:37 +0000 Subject: If an alias starts with a space, set aliasspaceflag to 1 instead of calling remhist(). --- Src/lex.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Src') diff --git a/Src/lex.c b/Src/lex.c index 2aec25678..9fc4ddae1 100644 --- a/Src/lex.c +++ b/Src/lex.c @@ -1561,9 +1561,8 @@ exalias(void) if (an && !an->inuse && ((an->flags & ALIAS_GLOBAL) || incmdpos || inalmore)) { inpush(an->text, INP_ALIAS, an); - /* remove from history if it begins with space */ - if (isset(HISTIGNORESPACE) && an->text[0] == ' ') - remhist(); + if (an->text[0] == ' ') + aliasspaceflag = 1; lexstop = 0; if (yytext == copy) yytext = tokstr; -- cgit v1.2.3