diff options
author | zeertzjq <zeertzjq@outlook.com> | 2021-10-03 12:01:27 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-10-03 12:01:27 +0100 |
commit | 27fef59dd1dd75f50c366f7f616ffa4451560452 (patch) | |
tree | 4305ae44ba2687a9c20e3f69b5f56a5c0afab219 /src/insexpand.c | |
parent | 8b8c0ed657fabd88e610401ca8a12366f987db94 (diff) |
patch 8.2.3465: cannot detect insert scroll modev8.2.3465
Problem: Cannot detect insert scroll mode.
Solution: Add "scroll" to complete_info(). (closes #8943)
Diffstat (limited to 'src/insexpand.c')
-rw-r--r-- | src/insexpand.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 *)""; |