From 737f58e23230ea14f1648ac1fc7f442ea0f8563c Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 20 Sep 2024 07:34:50 +0200 Subject: 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. --- src/nvim/buffer_defs.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/nvim/buffer_defs.h') diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h index 2edabf0904..6f059fc376 100644 --- a/src/nvim/buffer_defs.h +++ b/src/nvim/buffer_defs.h @@ -393,7 +393,7 @@ struct file_buffer { /// Change-identifier incremented for each change, including undo. /// - /// This is a dictionary item used to store b:changedtick. + /// This is a dict item used to store b:changedtick. ChangedtickDictItem changedtick_di; varnumber_T b_last_changedtick; // b:changedtick when TextChanged was @@ -672,8 +672,8 @@ struct file_buffer { int b_bad_char; // "++bad=" argument when edit started or 0 int b_start_bomb; // 'bomb' when it was read - ScopeDictDictItem b_bufvar; ///< Variable for "b:" Dictionary. - dict_T *b_vars; ///< b: scope dictionary. + ScopeDictDictItem b_bufvar; ///< Variable for "b:" Dict. + dict_T *b_vars; ///< b: scope Dict. // When a buffer is created, it starts without a swap file. b_may_swap is // then set to indicate that a swap file may be opened later. It is reset @@ -792,7 +792,7 @@ struct tabpage_S { int tp_diff_invalid; ///< list of diffs is outdated int tp_diff_update; ///< update diffs before redrawing frame_T *(tp_snapshot[SNAP_COUNT]); ///< window layout snapshots - ScopeDictDictItem tp_winvar; ///< Variable for "t:" Dictionary. + ScopeDictDictItem tp_winvar; ///< Variable for "t:" Dict. dict_T *tp_vars; ///< Internal variables, local to tab page. char *tp_localdir; ///< Absolute path of local cwd or NULL. char *tp_prevdir; ///< Previous directory. @@ -1263,8 +1263,8 @@ struct window_S { int w_scbind_pos; - ScopeDictDictItem w_winvar; ///< Variable for "w:" dictionary. - dict_T *w_vars; ///< Dictionary with w: variables. + ScopeDictDictItem w_winvar; ///< Variable for "w:" dict. + dict_T *w_vars; ///< Dict with w: variables. // The w_prev_pcmark field is used to check whether we really did jump to // a new line after setting the w_pcmark. If not, then we revert to -- cgit