commit e7a420eca70a3dd651e5795de537b6a297546b10
parent 1236341746317df0caf399180b1985680057c571
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 4 Jan 2021 15:39:29 +0100
prompt: suppress the ">" character always when exactly at the right edge
When the tail of the answer still fits exactly on the screen, the ">"
continuation character should not be shown -- also when the start of
the answer is "scrolled off" to the left.
This fixes https://savannah.gnu.org/bugs/?59816.
Bug existed in this form since version 4.0, commit 56181896.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/prompt.c b/src/prompt.c
@@ -403,7 +403,7 @@ void draw_the_promptbar(void)
waddstr(bottomwin, expanded);
free(expanded);
- if (the_page < end_page && base + breadth(answer) != COLS)
+ if (the_page < end_page && base + breadth(answer) - the_page > COLS)
mvwaddch(bottomwin, 0, COLS - 1, '>');
wattroff(bottomwin, interface_color_pair[PROMPT_BAR]);