mirror of
https://github.com/neovim/neovim.git
synced 2025-09-10 13:28:19 +00:00
refactor(api): complete conversion from Dictionary
to Dict(opts)
(#26365)
This commit is contained in:

committed by
GitHub

parent
32c8f951bb
commit
0b74ad0a64
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user