aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/command.c
diff options
context:
space:
mode:
authorRiccardo Mazzarini <riccardo.mazzarini@pm.me>2023-12-05 12:33:57 +0100
committerGitHub <noreply@github.com>2023-12-05 19:33:57 +0800
commit0b74ad0a641f28d9d3da5353e98372d87078bd9d (patch)
tree8f0352daaa9d66da3f6a90cc17c644d6f4926113 /src/nvim/api/command.c
parent32c8f951bb117bcff39460c3b4dd4f05112af6b3 (diff)
downloadrneovim-0b74ad0a641f28d9d3da5353e98372d87078bd9d.tar.gz
rneovim-0b74ad0a641f28d9d3da5353e98372d87078bd9d.tar.bz2
rneovim-0b74ad0a641f28d9d3da5353e98372d87078bd9d.zip
refactor(api): complete conversion from `Dictionary` to `Dict(opts)` (#26365)
Diffstat (limited to 'src/nvim/api/command.c')
-rw-r--r--src/nvim/api/command.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/nvim/api/command.c b/src/nvim/api/command.c
index 7116f4bce0..abb589ecdf 100644
--- a/src/nvim/api/command.c
+++ b/src/nvim/api/command.c
@@ -94,15 +94,11 @@
/// - "belowright": |:belowright|.
/// - "topleft": |:topleft|.
/// - "botright": |:botright|.
-Dictionary nvim_parse_cmd(String str, Dictionary opts, Error *err)
+Dictionary nvim_parse_cmd(String str, Dict(empty) *opts, Error *err)
FUNC_API_SINCE(10) FUNC_API_FAST
{
Dictionary result = ARRAY_DICT_INIT;
- VALIDATE((opts.size == 0), "%s", "opts dict isn't empty", {
- return result;
- });
-
// Parse command line
exarg_T ea;
CmdParseInfo cmdinfo;