mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-11 13:50:48 -05:00
Add bang support to combi
This commit is contained in:
parent
1a7d77db6e
commit
ca8ff80a5c
1 changed files with 11 additions and 2 deletions
|
@ -176,10 +176,19 @@ static int combi_mode_match ( char **tokens, const char *input,
|
|||
|
||||
for ( unsigned i = 0; i < pd->num_switchers; i++ ) {
|
||||
if ( index >= pd->starts[i] && index < ( pd->starts[i] + pd->lengths[i] ) ) {
|
||||
if ( tokens && input[0] && tokens[0][0] == '!' ) {
|
||||
if ( tokens[0][1] == pd->switchers[i]->name[0] ) {
|
||||
return pd->switchers[i]->token_match ( &tokens[1], input, case_sensitive,
|
||||
index - pd->starts[i], pd->switchers[i] );
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
else {
|
||||
return pd->switchers[i]->token_match ( tokens, input, case_sensitive,
|
||||
index - pd->starts[i], pd->switchers[i] );
|
||||
}
|
||||
}
|
||||
}
|
||||
abort ();
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue