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:
parent
d2d95d2d4b
commit
273d09ba1a
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue