diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-09-15 16:18:06 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-09-15 16:18:06 +0000 |
commit | 14905ddc74f78b54c75434c8a4d7e029b1933280 (patch) | |
tree | 8253040a133e669f302f5542ed5ce3ecab95f646 /Src | |
parent | 6951a1e0b2ce74ad8f2b30243e721c3890dcdda8 (diff) | |
download | zsh-14905ddc74f78b54c75434c8a4d7e029b1933280.tar.gz zsh-14905ddc74f78b54c75434c8a4d7e029b1933280.tar.xz zsh-14905ddc74f78b54c75434c8a4d7e029b1933280.zip |
25672: remove unnecessary Nularg when prompt expanding
to avoid problem with glitch space
Diffstat (limited to 'Src')
-rw-r--r-- | Src/prompt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Src/prompt.c b/Src/prompt.c index 72ba2e244..36eaca3e9 100644 --- a/Src/prompt.c +++ b/Src/prompt.c @@ -169,6 +169,12 @@ promptexpand(char *s, int ns, char *rs, char *Rs, unsigned int *txtchangep) s = dupstring(s); if (!parsestr(s)) singsub(&s); + /* + * We don't need the special Nularg hack here and we're + * going to be using Nularg for other things. + */ + if (*s == Nularg && s[1] == '\0') + *s = '\0'; /* Ignore errors and status change in prompt substitution */ errflag = olderr; |