clobber the prompt when it exceeds the screen width, not when it equals it

Closes #1069
This commit is contained in:
devlin zed 2013-10-28 14:14:49 -04:00 committed by David Adam
parent 4a6592597a
commit f186812f18

View file

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