mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
clobber the prompt when it exceeds the screen width, not when it equals it
Closes #1069
This commit is contained in:
parent
4a6592597a
commit
f186812f18
1 changed files with 1 additions and 1 deletions
|
@ -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"> ";
|
||||
|
|
Loading…
Reference in a new issue