1
0
Fork 0
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:
Warepire 2018-01-15 11:35:58 +01:00 committed by Peter Stephenson
parent de6a293159
commit d8d9fee137
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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++;
}