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

Fix crasher on empty list

This commit is contained in:
Dave Davenport 2015-12-04 22:01:32 +01:00
parent d2d95d2d4b
commit 273d09ba1a

View file

@ -1615,7 +1615,9 @@ MenuReturn menu ( Mode *sw, char **input, char *prompt, unsigned int *selected_l
*input = g_strdup ( state.text->text );
if ( next_pos ) {
*( next_pos ) = state.line_map[state.selected + 1];
if((state.selected+1)< state.num_lines){
*( next_pos ) = state.line_map[state.selected + 1];
}
}
int retv = state.retv;