diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-06-24 08:44:14 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-06-24 08:44:14 +0000 |
commit | a440669201fcaaefe7a83d901e18dbdd57cf9d0a (patch) | |
tree | 18126b5c9b302e6548b73dfbb600ade0a4ad3565 /Src/prompt.c | |
parent | 0d7df628a47f4d944a266fe547d1db3c6b55b6f1 (diff) | |
download | zsh-a440669201fcaaefe7a83d901e18dbdd57cf9d0a.tar.gz zsh-a440669201fcaaefe7a83d901e18dbdd57cf9d0a.tar.xz zsh-a440669201fcaaefe7a83d901e18dbdd57cf9d0a.zip |
25242: Mikael V prompt test for contents of psvar
Diffstat (limited to 'Src/prompt.c')
-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 034a4fa29..72ba2e244 100644 --- a/Src/prompt.c +++ b/Src/prompt.c @@ -321,6 +321,12 @@ putpromptchar(int doprint, int endchar, unsigned int *txtchangep) if (arrlen(psvar) >= arg) test = 1; break; + case 'V': + if (arrlen(psvar) >= arg) { + if (*psvar[(arg ? arg : 1) - 1]) + test = 1; + } + break; case '_': test = (cmdsp >= arg); break; |