From 72239f02877034ef1b9ff35ac83f67bf4c0a3a2f Mon Sep 17 00:00:00 2001 From: Anton Lindqvist Date: Mon, 25 Apr 2016 09:03:59 +0200 Subject: [PATCH] Fix standout rendering of last line Emitting the `clr_eos' capability will clear all columns from the current cursor position (inclusive) to the end of the screen. If the last line was selected the last column would therefor also be cleared including the standout. The solution is simply to clear the screen prior redrawing the interface. --- src/pick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pick.c b/src/pick.c index 5ec1d648..cea5fad5 100644 --- a/src/pick.c +++ b/src/pick.c @@ -463,7 +463,6 @@ selected_choice(void) tty_putp(cursor_invisible); visible_choices_count = print_choices(selection); - tty_putp(clr_eos); if (cursor_position >= scroll + columns) scroll = cursor_position - columns + 1; if (cursor_position < scroll) @@ -673,6 +672,7 @@ print_choices(int selection) size_t query_length; struct choice *choice; + tty_putp(clr_eos); /* Emit query line. */ tty_putc('\n');