diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Src/prompt.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index ae241d103..c1926df1e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/Src/prompt.c b/Src/prompt.c index 63e8093f3..95da52559 100644 --- a/Src/prompt.c +++ b/Src/prompt.c @@ -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++; } |