mirror of
https://github.com/davatorium/rofi.git
synced 2025-07-31 21:59:25 -04: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,8 +1615,10 @@ MenuReturn menu ( Mode *sw, char **input, char *prompt, unsigned int *selected_l
|
|||
*input = g_strdup ( state.text->text );
|
||||
|
||||
if ( next_pos ) {
|
||||
if((state.selected+1)< state.num_lines){
|
||||
*( next_pos ) = state.line_map[state.selected + 1];
|
||||
}
|
||||
}
|
||||
|
||||
int retv = state.retv;
|
||||
menu_free_state ( &state );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue