mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 03:51:14 -03:00
clobber the prompt when it exceeds the screen width, not when it equals it
Closes #1069
This commit is contained in:
@@ -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"> ";
|
||||
|
||||
Reference in New Issue
Block a user