diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-07-20 15:33:19 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-07-20 15:33:19 +0200 |
commit | 86281072f9b943c23119f1c90cd33934caf1d737 (patch) | |
tree | e6109de8096bc23298f1346b49f2053cc407ac03 /src/command | |
parent | c5c969a9295abe688ad7fd9afce430bae5df910c (diff) | |
download | profani-tty-86281072f9b943c23119f1c90cd33934caf1d737.tar.gz |
Use parse_args_with_freetext() for `/correct`
This commit partly reverts 8f37afcd37ad8663ca36c13ca7fbc4a431119f73 Which was using a wrong approach to achieve this. It changed parse_args() to have a -1 for infinite parameters. But actually parse_args_with_freetext() should have been used exactly for this behaviour. Discovered when checking for https://github.com/profanity-im/profanity/issues/1404
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/cmd_defs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c index c2a6ad18..558b02bd 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, 1, -1, NULL, + parse_args_with_freetext, 1, 1, NULL, CMD_NOSUBFUNCS CMD_MAINFUNC(cmd_correct) CMD_TAGS( |