From bd8550ddca9e46dba3f867430b9495b51dde54f0 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 3 Oct 2023 07:45:37 +0800 Subject: vim-patch:9.0.1973: Clean up cmdline option completion code (#25477) Problem: Clean up cmdline option completion code Solution: Fix various minor problems - Fix manual array size calculations to just use `ARRAY_LENGTH()`. - Fix unintentional typo in comments due to copy-paste error. - Fix assert_equal() usages to pass the expected value to first parameter instead of 2nd one to avoid confusion. - Fix signed vs unsigned warnings - Correct misplaced comments about set_op_T and set_prefix_T and fix a typo in another comment closes: vim/vim#13249 closes: vim/vim#13237 https://github.com/vim/vim/commit/6d113472601fa6f3a444a95ef7b11d4309215117 N/A patch: vim-patch:9.0.1976: style: space before tab in optionstr.c Co-authored-by: Yee Cheng Chin --- src/nvim/move.c | 2 +- src/nvim/option.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/move.c b/src/nvim/move.c index 8efb038a55..dd9737ede2 100644 --- a/src/nvim/move.c +++ b/src/nvim/move.c @@ -2699,7 +2699,7 @@ void do_check_cursorbind(void) FOR_ALL_WINDOWS_IN_TAB(wp, curtab) { curwin = wp; curbuf = curwin->w_buffer; - // skip original window and windows with 'noscrollbind' + // skip original window and windows with 'nocursorbind' if (curwin != old_curwin && curwin->w_p_crb) { if (curwin->w_p_diff) { curwin->w_cursor.lnum = diff --git a/src/nvim/option.c b/src/nvim/option.c index e709a810bc..f87ac258bc 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -137,6 +137,7 @@ static char *p_vsts_nopaste; #define OPTION_COUNT ARRAY_SIZE(options) +/// :set boolean option prefix typedef enum { PREFIX_NO = 0, ///< "no" prefix PREFIX_NONE, ///< no prefix -- cgit