about summary refs log tree commit diff
path: root/Src/prompt.c
diff options
context:
space:
mode:
authorWarepire <warepire.ml@gmail.com>2018-01-15 11:35:58 +0100
committerPeter Stephenson <pws@zsh.org>2018-01-16 09:31:16 +0000
commitd8d9fee137a5aa2cf9bf8314b06895bfc2a05518 (patch)
tree6113cf7e08ad93ada749e6803982f509013c2f66 /Src/prompt.c
parentde6a293159a70493bf893dd49fa30cbf14ab7632 (diff)
downloadzsh-d8d9fee137a5aa2cf9bf8314b06895bfc2a05518.tar.gz
zsh-d8d9fee137a5aa2cf9bf8314b06895bfc2a05518.tar.xz
zsh-d8d9fee137a5aa2cf9bf8314b06895bfc2a05518.zip
42285: off by one fix in multiple prompts
Diffstat (limited to 'Src/prompt.c')
-rw-r--r--Src/prompt.c2
1 files changed, 1 insertions, 1 deletions
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++;
 	}