mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 10:01:11 +02:00
42285: off by one fix in multiple prompts
This commit is contained in:
parent
de6a293159
commit
d8d9fee137
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2018-01-16 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* Warepire: Src/prompt.c: off by one fix in multiline prompts.
|
||||
|
||||
2018-01-14 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 42136: Src/prompt.c: empty string check in %~ / %C expansions
|
||||
|
|
|
@ -1087,7 +1087,7 @@ countprompt(char *str, int *wp, int *hp, int overf)
|
|||
#endif
|
||||
|
||||
for (; *str; str++) {
|
||||
if (w >= zterm_columns && overf >= 0) {
|
||||
if (w > zterm_columns && overf >= 0) {
|
||||
w = 0;
|
||||
h++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue