mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Simplify _correction_autocomplete()
This commit is contained in:
parent
711ea4887f
commit
e9a946f75e
@ -4031,11 +4031,8 @@ _correction_autocomplete(ProfWin* window, const char* const input, gboolean prev
|
|||||||
char* result = NULL;
|
char* result = NULL;
|
||||||
|
|
||||||
result = autocomplete_param_with_ac(input, "/correction", correction_ac, TRUE, previous);
|
result = autocomplete_param_with_ac(input, "/correction", correction_ac, TRUE, previous);
|
||||||
if (result) {
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
return NULL;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
static char*
|
static char*
|
||||||
|
Loading…
Reference in New Issue
Block a user