summaryrefslogtreecommitdiffstats
path: root/source/dialogs
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-04-10 20:57:12 +0200
committerDave Davenport <qball@gmpclient.org>2016-04-10 20:57:12 +0200
commit26e10838129551349fa2a9c86da4180ff89cee12 (patch)
treeb05ab82c319187fe6136e5b85e9b6d3c0ccc871f /source/dialogs
parentcbf625ec9fe2603457e900639d0b84de0bd99bd6 (diff)
Issue: #380 Make combi complete prepend bang
Diffstat (limited to 'source/dialogs')
-rw-r--r--source/dialogs/combi.c5
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.