1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-01-03 14:57:42 -05:00

Tidied bookmark autocompleter

This commit is contained in:
James Booth 2014-05-14 20:53:31 +01:00
parent 506ce9cb13
commit bd55e7a978

View File

@ -1680,6 +1680,7 @@ _bookmark_autocomplete(char *input, int *size)
g_string_append(beginning, args[2]);
autojoin = TRUE;
}
}
if (num_args > 4) {
g_string_append(beginning, " ");
@ -1691,6 +1692,7 @@ _bookmark_autocomplete(char *input, int *size)
g_string_append(beginning, args[4]);
autojoin = TRUE;
}
}
if (num_args > 6) {
g_string_append(beginning, " ");
@ -1703,8 +1705,8 @@ _bookmark_autocomplete(char *input, int *size)
autojoin = TRUE;
}
}
}
if (num_args > 2) {
if (autojoin) {
found = autocomplete_param_with_func(input, size, beginning->str, prefs_autocomplete_boolean_choice);
} else {