1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-02-02 15:08:15 -05:00

Simplify _sub_autocomplete()

This commit is contained in:
Michael Vetter 2020-11-05 09:31:59 +01:00
parent c65f03884e
commit 36e0bfde46

View File

@ -1827,13 +1827,9 @@ _sub_autocomplete(ProfWin* window, const char* const input, gboolean previous)
return result; return result;
} }
result = autocomplete_param_with_ac(input, "/sub", sub_ac, TRUE, previous); result = autocomplete_param_with_ac(input, "/sub", sub_ac, TRUE, previous);
if (result) {
return result; return result;
} }
return NULL;
}
static char* static char*
_tray_autocomplete(ProfWin* window, const char* const input, gboolean previous) _tray_autocomplete(ProfWin* window, const char* const input, gboolean previous)
{ {