forked from aniani/vim
patch 8.2.3465: cannot detect insert scroll mode
Problem: Cannot detect insert scroll mode. Solution: Add "scroll" to complete_info(). (closes #8943)
This commit is contained in:
@@ -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 *)"";
|
||||
|
||||
Reference in New Issue
Block a user