Fix /correct quotation marks usage
Add new `parse_args_as_one()` function to just use everything after the command as the argument. Fix https://github.com/profanity-im/profanity/issues/1404
This commit is contained in:
@@ -4189,7 +4189,6 @@ _lastactivity_autocomplete(ProfWin* window, const char* const input, gboolean pr
|
||||
if (result) {
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
||||
@@ -2443,7 +2443,7 @@ static struct cmd_t command_defs[] = {
|
||||
},
|
||||
|
||||
{ "/correct",
|
||||
parse_args_with_freetext, 1, 1, NULL,
|
||||
parse_args_as_one, 1, 1, NULL,
|
||||
CMD_NOSUBFUNCS
|
||||
CMD_MAINFUNC(cmd_correct)
|
||||
CMD_TAGS(
|
||||
|
||||
Reference in New Issue
Block a user