diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 43aae40d4c..588f511553 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -3883,6 +3883,8 @@ complete_info([{what}]) *complete_info()* "" Not in completion mode "keyword" Keyword completion |i_CTRL-X_CTRL-N| "ctrl_x" Just pressed CTRL-X |i_CTRL-X| + "scroll" Scrolling with |i_CTRL-X_CTRL-E| or + |i_CTRL-X_CTRL-Y| "whole_line" Whole lines |i_CTRL-X_CTRL-L| "files" File names |i_CTRL-X_CTRL-F| "tags" Tags |i_CTRL-X_CTRL-]| diff --git a/src/insexpand.c b/src/insexpand.c index 0e363f7375..ee8263c8b8 100644 --- a/src/insexpand.c +++ b/src/insexpand.c @@ -68,7 +68,7 @@ static char *ctrl_x_msgs[] = static char *ctrl_x_mode_names[] = { "keyword", "ctrl_x", - "unknown", // CTRL_X_SCROLL + "scroll", "whole_line", "files", "tags", @@ -2539,7 +2539,8 @@ f_complete_check(typval_T *argvars UNUSED, typval_T *rettv) static char_u * ins_compl_mode(void) { - if (ctrl_x_mode == CTRL_X_NOT_DEFINED_YET || compl_started) + if (ctrl_x_mode == CTRL_X_NOT_DEFINED_YET || ctrl_x_mode == CTRL_X_SCROLL + || compl_started) return (char_u *)ctrl_x_mode_names[ctrl_x_mode & ~CTRL_X_WANT_IDENT]; return (char_u *)""; diff --git a/src/testdir/test_popup.vim b/src/testdir/test_popup.vim index 1d0a77c17c..0799df5480 100644 --- a/src/testdir/test_popup.vim +++ b/src/testdir/test_popup.vim @@ -990,6 +990,10 @@ func Test_popup_complete_info_01() \ ["\", 'ctrl_x'], \ ["\\", 'keyword'], \ ["\\", 'keyword'], + \ ["\\", 'scroll'], + \ ["\\", 'scroll'], + \ ["\\\\", 'scroll'], + \ ["\\\\", 'scroll'], \ ["\\", 'whole_line'], \ ["\\", 'files'], \ ["\\", 'tags'], diff --git a/src/version.c b/src/version.c index 4e4f4fd158..79f88eb721 100644 --- a/src/version.c +++ b/src/version.c @@ -757,6 +757,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3465, /**/ 3464, /**/