From c2f06d3f927a979332cfc8ea0f22a2f45cf91d7b Mon Sep 17 00:00:00 2001 From: Qball Cow Date: Sun, 25 May 2014 23:58:05 +0200 Subject: [PATCH] Fix highlighting of arrow box --- source/rofi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/rofi.c b/source/rofi.c index c06bee8a..7480bc5c 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -798,13 +798,13 @@ void menu_set_arrow_text ( int filtered_lines, int selected, int max_elements, if ( page != 0 && npages > 1 ) { textbox_show ( arrowbox_top ); - textbox_font ( arrowbox_top, ( entry == 0 ) ? NORMAL : HIGHLIGHT ); + textbox_font ( arrowbox_top, ( entry != 0 ) ? NORMAL : HIGHLIGHT ); textbox_draw ( arrowbox_top ); } if ( ( npages - 1 ) != page && npages > 1 ) { textbox_show ( arrowbox_bottom ); - textbox_font ( arrowbox_bottom, ( entry == 0 ) ? NORMAL : HIGHLIGHT ); + textbox_font ( arrowbox_bottom, ( entry != ( max_elements - 1 ) ) ? NORMAL : HIGHLIGHT ); textbox_draw ( arrowbox_bottom ); } }