mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 18:06:30 +00:00
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
6d11347260
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>
This commit is contained in:
@@ -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 =
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user