1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Complete no arg for /script run|show

This commit is contained in:
James Booth 2016-05-24 01:39:16 +01:00
parent 78c23dce58
commit 492c1bfa14

View File

@ -1928,14 +1928,14 @@ static char*
_script_autocomplete(ProfWin *window, const char *const input) _script_autocomplete(ProfWin *window, const char *const input)
{ {
char *result = NULL; char *result = NULL;
if ((strncmp(input, "/script show ", 13) == 0) && (strlen(input) > 13)) { if (strncmp(input, "/script show ", 13) == 0) {
result = autocomplete_param_with_func(input, "/script show", _script_autocomplete_func); result = autocomplete_param_with_func(input, "/script show", _script_autocomplete_func);
if (result) { if (result) {
return result; return result;
} }
} }
if ((strncmp(input, "/script run ", 12) == 0) && (strlen(input) > 12)) { if (strncmp(input, "/script run ", 12) == 0) {
result = autocomplete_param_with_func(input, "/script run", _script_autocomplete_func); result = autocomplete_param_with_func(input, "/script run", _script_autocomplete_func);
if (result) { if (result) {
return result; return result;