mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 14:56:08 +00:00
refactor(api)!: rename Dictionary => Dict
In the api_info() output: :new|put =map(filter(api_info().functions, '!has_key(v:val,''deprecated_since'')'), 'v:val') ... {'return_type': 'ArrayOf(Integer, 2)', 'name': 'nvim_win_get_position', 'method': v:true, 'parameters': [['Window', 'window']], 'since': 1} The `ArrayOf(Integer, 2)` return type didn't break clients when we added it, which is evidence that clients don't use the `return_type` field, thus renaming Dictionary => Dict in api_info() is not (in practice) a breaking change.
This commit is contained in:
@@ -938,7 +938,7 @@ int decor_virt_lines(win_T *wp, int start_row, int end_row, VirtLines *lines, bo
|
||||
/// This assumes maximum one entry of each kind, which will not always be the case.
|
||||
///
|
||||
/// NB: assumes caller has allocated enough space in dict for all fields!
|
||||
void decor_to_dict_legacy(Dictionary *dict, DecorInline decor, bool hl_name, Arena *arena)
|
||||
void decor_to_dict_legacy(Dict *dict, DecorInline decor, bool hl_name, Arena *arena)
|
||||
{
|
||||
DecorSignHighlight sh_hl = DECOR_SIGN_HIGHLIGHT_INIT;
|
||||
DecorSignHighlight sh_sign = DECOR_SIGN_HIGHLIGHT_INIT;
|
||||
|
Reference in New Issue
Block a user