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:
Michael Vetter
2020-07-23 09:40:22 +02:00
parent a5ca65453e
commit 8c0c5cb28c
4 changed files with 29 additions and 2 deletions

View File

@@ -4189,7 +4189,6 @@ _lastactivity_autocomplete(ProfWin* window, const char* const input, gboolean pr
if (result) {
return result;
}
}
return NULL;

View File

@@ -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(