diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-04-10 20:57:12 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-04-10 20:57:12 +0200 |
commit | 26e10838129551349fa2a9c86da4180ff89cee12 (patch) | |
tree | b05ab82c319187fe6136e5b85e9b6d3c0ccc871f /source/dialogs | |
parent | cbf625ec9fe2603457e900639d0b84de0bd99bd6 (diff) |
Issue: #380 Make combi complete prepend bang
Diffstat (limited to 'source/dialogs')
-rw-r--r-- | source/dialogs/combi.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/dialogs/combi.c b/source/dialogs/combi.c index 6468e865..2e828bc1 100644 --- a/source/dialogs/combi.c +++ b/source/dialogs/combi.c @@ -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. |