mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-25 13:55:34 -05:00
Issue: #380 Make combi complete prepend bang
This commit is contained in:
parent
cbf625ec9f
commit
26e1083812
1 changed files with 4 additions and 1 deletions
|
@ -246,7 +246,10 @@ static char * combi_get_completion ( const Mode *sw, unsigned int index )
|
|||
CombiModePrivateData *pd = mode_get_private_data ( sw );
|
||||
for ( unsigned i = 0; i < pd->num_switchers; i++ ) {
|
||||
if ( index >= pd->starts[i] && index < ( pd->starts[i] + pd->lengths[i] ) ) {
|
||||
return mode_get_completion ( pd->switchers[i], index - pd->starts[i] );
|
||||
char *comp = mode_get_completion ( pd->switchers[i], index - pd->starts[i] );
|
||||
char *mcomp = g_strdup_printf ( "!%c %s", mode_get_name ( pd->switchers[i] )[0], comp );
|
||||
g_free(comp);
|
||||
return mcomp;
|
||||
}
|
||||
}
|
||||
// Should never get here.
|
||||
|
|
Loading…
Reference in a new issue