From f406b06d28026b1547f4783578df7af0e43972df Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Thu, 23 Apr 2020 11:37:58 +0200 Subject: [PATCH 2/2] scrollbar: use a dim background to have the bar always visible --- src/winio.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/winio.c b/src/winio.c index dc31964e..2d6d4a67 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2976,11 +2976,14 @@ void draw_scrollbars(void) for(int current_lineno = 0; current_lineno < screen_lines; current_lineno++) { if (current_lineno >= inf && current_lineno <= sup){ - wattron(edit, hilite_attribute); - mvwaddch(edit, current_lineno, COLS - 1, '*'); - wattroff(edit, hilite_attribute); - } else + wattron(edit, A_REVERSE); + mvwaddch(edit, current_lineno, COLS - 1, ' '); + wattroff(edit, A_REVERSE); + } else { + wattron(edit, A_REVERSE|A_DIM); mvwaddch(edit, current_lineno, COLS - 1, ' '); + wattroff(edit, A_REVERSE|A_DIM); + } } } -- 2.25.4