Skip to content

Commit

Permalink
Fix standout rendering of last line
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mptre committed Apr 25, 2016
1 parent 03cb047 commit 72239f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pick.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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');

Expand Down

0 comments on commit 72239f0

Please sign in to comment.