mirror of https://github.com/davatorium/rofi.git
[combi] Fix selecting entry with only bang as input.
Check for a space or eos.
This commit is contained in:
parent
2ea30861d3
commit
bd60a68d1c
|
@ -166,7 +166,8 @@ static ModeMode combi_mode_result(Mode *sw, int mretv, char **input,
|
|||
}
|
||||
}
|
||||
if (switcher >= 0) {
|
||||
if (eob[0] == ' ') {
|
||||
if (eob[0] == ' ' || eob[0] == '\0') {
|
||||
printf("found mode\n");
|
||||
char *n = eob + 1;
|
||||
return mode_result(pd->switchers[switcher].mode, mretv, &n,
|
||||
selected_line - pd->starts[switcher]);
|
||||
|
|
Loading…
Reference in New Issue