X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=selector.git;a=blobdiff_plain;f=selector.c;h=ca9d392d02b76d5b012fc2d19793299c26c0bc85;hp=5f6203d218df820ecfc88d51460b139cfbe21171;hb=9989270a08b72be02921e1c32ec01950a470cca5;hpb=7766119933219cac9ff380a677c8ca721e9dac0d diff --git a/selector.c b/selector.c index 5f6203d..ca9d392 100644 --- a/selector.c +++ b/selector.c @@ -608,27 +608,19 @@ void update_screen(int *current_focus_line, int *displayed_focus_line, k++; } - /* We fill the rest of the line with blanks if this is the - highlighted line */ + /* Highlight the highlighted line ... */ if(l == new_focus_line) { while(k < console_width) { buffer[k++] = ' '; } - } - - buffer[k++] = '\n'; - buffer[k++] = '\0'; - - clrtoeol(); - - /* Highlight the highlighted line ... */ - - if(l == new_focus_line) { attron(attr_focus_line); addnstr(buffer, console_width); attroff(attr_focus_line); } else { + buffer[k++] = '\n'; + buffer[k++] = '\0'; + /* clrtoeol(); */ addnstr(buffer, console_width); }