Tidied bookmark autocompleter
This commit is contained in:
@@ -1680,6 +1680,7 @@ _bookmark_autocomplete(char *input, int *size)
|
|||||||
g_string_append(beginning, args[2]);
|
g_string_append(beginning, args[2]);
|
||||||
autojoin = TRUE;
|
autojoin = TRUE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (num_args > 4) {
|
if (num_args > 4) {
|
||||||
g_string_append(beginning, " ");
|
g_string_append(beginning, " ");
|
||||||
@@ -1691,6 +1692,7 @@ _bookmark_autocomplete(char *input, int *size)
|
|||||||
g_string_append(beginning, args[4]);
|
g_string_append(beginning, args[4]);
|
||||||
autojoin = TRUE;
|
autojoin = TRUE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (num_args > 6) {
|
if (num_args > 6) {
|
||||||
g_string_append(beginning, " ");
|
g_string_append(beginning, " ");
|
||||||
@@ -1703,8 +1705,8 @@ _bookmark_autocomplete(char *input, int *size)
|
|||||||
autojoin = TRUE;
|
autojoin = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
if (num_args > 2) {
|
||||||
if (autojoin) {
|
if (autojoin) {
|
||||||
found = autocomplete_param_with_func(input, size, beginning->str, prefs_autocomplete_boolean_choice);
|
found = autocomplete_param_with_func(input, size, beginning->str, prefs_autocomplete_boolean_choice);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user