mirror of https://github.com/davatorium/rofi.git
Small update trying to fix past commit.
This commit is contained in:
parent
6805d93f68
commit
e2a3139b7d
|
@ -1654,12 +1654,16 @@ MenuReturn menu ( char **lines, unsigned int num_lines, char **input, char *prom
|
||||||
*( state.selected_line ) = state.line_map[state.selected];
|
*( state.selected_line ) = state.line_map[state.selected];
|
||||||
if ( strlen ( state.text->text ) > 0 && rc == -2 ) {
|
if ( strlen ( state.text->text ) > 0 && rc == -2 ) {
|
||||||
state.retv = MENU_CUSTOM_INPUT;
|
state.retv = MENU_CUSTOM_INPUT;
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
state.retv = MENU_OK;
|
state.retv = MENU_OK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Nothing entered and nothing selected.
|
else if ( rc == -2 ) {
|
||||||
|
state.retv = MENU_CUSTOM_INPUT;
|
||||||
|
}
|
||||||
else{
|
else{
|
||||||
|
// Nothing entered and nothing selected.
|
||||||
state.retv = MENU_CANCEL;
|
state.retv = MENU_CANCEL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue