1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00

Try to fix mountains__ function.

This commit is contained in:
QC 2015-03-15 11:51:12 +01:00
parent 4579a62b2d
commit 916e7356fe

View file

@ -788,7 +788,7 @@ static void menu_refilter ( MenuState *state, char **lines, menu_match_cb mmc, v
}
state->selected = MIN ( state->selected, state->filtered_lines - 1 );
if ( config.auto_select == TRUE && state->filtered_lines == 1 ) {
if ( config.auto_select == TRUE && state->filtered_lines == 1 && state->num_lines > 1) {
*( state->selected_line ) = state->line_map[state->selected];
state->retv = MENU_OK;
state->quit = TRUE;