aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/deprecated.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/deprecated.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/deprecated.c')
-rw-r--r--src/nvim/api/deprecated.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/nvim/api/deprecated.c b/src/nvim/api/deprecated.c
index 11795033cc..d6a76617a7 100644
--- a/src/nvim/api/deprecated.c
+++ b/src/nvim/api/deprecated.c
@@ -126,7 +126,7 @@ void nvim_buf_clear_highlight(Buffer buffer, Integer ns_id, Integer line_start,
/// @param[out] err Error details, if any
/// @return The ns_id that was used
Integer nvim_buf_set_virtual_text(Buffer buffer, Integer src_id, Integer line, Array chunks,
- Dictionary opts, Error *err)
+ Dict(empty) *opts, Error *err)
FUNC_API_SINCE(5)
FUNC_API_DEPRECATED_SINCE(8)
{
@@ -140,11 +140,6 @@ Integer nvim_buf_set_virtual_text(Buffer buffer, Integer src_id, Integer line, A
return 0;
}
- if (opts.size > 0) {
- api_set_error(err, kErrorTypeValidation, "opts dict isn't empty");
- return 0;
- }
-
uint32_t ns_id = src2ns(&src_id);
int width;