mirror of git://git.code.sf.net/p/zsh/code
42136: empty string check in %~ / %C prompt expansions
This commit is contained in:
parent
b476d89fa2
commit
de6a293159
|
@ -1,5 +1,7 @@
|
|||
2018-01-14 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 42136: Src/prompt.c: empty string check in %~ / %C expansions
|
||||
|
||||
* 42043: Src/exec.c: ZSH_DEBUG_CMD should not WARN_CREATE_GLOBAL
|
||||
|
||||
2018-01-13 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
|
|
@ -315,7 +315,7 @@ putpromptchar(int doprint, int endchar, unsigned int *txtchangep)
|
|||
case '/':
|
||||
case 'C':
|
||||
/* `/' gives 0, `/any' gives 1, etc. */
|
||||
if (*ss++ == '/' && *ss)
|
||||
if (*ss && *ss++ == '/' && *ss)
|
||||
arg--;
|
||||
for (; *ss; ss++)
|
||||
if (*ss == '/')
|
||||
|
|
Loading…
Reference in New Issue