From f186812f18958aac7780e43edf02cfbafe90f283 Mon Sep 17 00:00:00 2001 From: devlin zed Date: Mon, 28 Oct 2013 14:14:49 -0400 Subject: [PATCH] clobber the prompt when it exceeds the screen width, not when it equals it Closes #1069 --- screen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screen.cpp b/screen.cpp index 8955059cd..d02fc438a 100644 --- a/screen.cpp +++ b/screen.cpp @@ -1098,7 +1098,7 @@ static screen_layout_t compute_layout(screen_t *s, size_t left_prompt_width = left_prompt_layout.last_line_width; size_t right_prompt_width = right_prompt_layout.last_line_width; - if (left_prompt_layout.max_line_width >= screen_width) + if (left_prompt_layout.max_line_width > screen_width) { /* If we have a multi-line prompt, see if the longest line fits; if not neuter the whole left prompt */ left_prompt = L"> ";