diff options
Diffstat (limited to 'Src/prompt.c')
-rw-r--r-- | Src/prompt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/prompt.c b/Src/prompt.c index 5e80da172..e0304f298 100644 --- a/Src/prompt.c +++ b/Src/prompt.c @@ -528,7 +528,9 @@ putpromptchar(int doprint, int endchar) tm = localtime(&timet); for(t0=80; ; t0*=2) { addbufspc(t0); - if (ztrftime(bp, t0, tmfmt, tm)) + if (ztrftime(bp, t0, tmfmt, tm) || + !strcmp("%P", tmfmt) || + !strcmp("%p", tmfmt)) break; } bp += strlen(bp); |