diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-10-03 07:45:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-03 07:45:37 +0800 |
commit | bd8550ddca9e46dba3f867430b9495b51dde54f0 (patch) | |
tree | 19e30355ca39acf53c4a40dc2a9c6002379ec270 /src/nvim/move.c | |
parent | 1101cfeb349453bc7220e68695bf60a0f96f3069 (diff) | |
download | rneovim-bd8550ddca9e46dba3f867430b9495b51dde54f0.tar.gz rneovim-bd8550ddca9e46dba3f867430b9495b51dde54f0.tar.bz2 rneovim-bd8550ddca9e46dba3f867430b9495b51dde54f0.zip |
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 <ychin.git@gmail.com>
Diffstat (limited to 'src/nvim/move.c')
-rw-r--r-- | src/nvim/move.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 = |