diff options
| author | Michael Vetter <jubalh@iodoru.org> | 2020-07-23 09:40:22 +0200 |
|---|---|---|
| committer | Michael Vetter <jubalh@iodoru.org> | 2020-07-23 09:40:22 +0200 |
| commit | 8c0c5cb28ce74d4eb66a3161dadaa07068b15383 (patch) | |
| tree | 12c3b8c35efa7a68b5875f38fbcfd07077ee5c1f /src/command | |
| parent | a5ca65453e04a2af2b01c1c0bfb65c9a5cc1563e (diff) | |
| download | profani-tty-8c0c5cb28ce74d4eb66a3161dadaa07068b15383.tar.gz | |
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
Diffstat (limited to 'src/command')
| -rw-r--r-- | src/command/cmd_ac.c | 1 | ||||
| -rw-r--r-- | src/command/cmd_defs.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/command/cmd_ac.c b/src/command/cmd_ac.c index cf148fc4..52535f23 100644 --- a/src/command/cmd_ac.c +++ b/src/command/cmd_ac.c @@ -4189,7 +4189,6 @@ _lastactivity_autocomplete(ProfWin* window, const char* const input, gboolean pr if (result) { return result; } - } return NULL; diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c index e0e60876..8bfd33d3 100644 --- a/src/command/cmd_defs.c +++ b/src/command/cmd_defs.c @@ -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( |