diff options
author | Warepire <warepire.ml@gmail.com> | 2018-01-15 11:35:58 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2018-01-16 09:31:16 +0000 |
commit | d8d9fee137a5aa2cf9bf8314b06895bfc2a05518 (patch) | |
tree | 6113cf7e08ad93ada749e6803982f509013c2f66 | |
parent | de6a293159a70493bf893dd49fa30cbf14ab7632 (diff) | |
download | zsh-d8d9fee137a5aa2cf9bf8314b06895bfc2a05518.tar.gz zsh-d8d9fee137a5aa2cf9bf8314b06895bfc2a05518.tar.xz zsh-d8d9fee137a5aa2cf9bf8314b06895bfc2a05518.zip |
42285: off by one fix in multiple prompts
-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++; } |