mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 08:56:29 +00:00
vim-patch:8.1.1076: file for Insert mode is much too big
Problem: File for Insert mode is much too big. Solution: Split off the code for Insert completion. (Yegappan Lakshmanan, closes vim/vim#4044)7591bb39d5
Cherry-pick ins_compl_len() -> get_compl_len() from patch 8.2.4001. Reverta71c5e9eb9
: ctrl_x_mode is no longer a global variable, so l_ctrl_x_mode is no longer needed.
This commit is contained in:
@@ -95,6 +95,7 @@
|
||||
#include "nvim/getchar.h"
|
||||
#include "nvim/hashtab.h"
|
||||
#include "nvim/input.h"
|
||||
#include "nvim/insexpand.h"
|
||||
#include "nvim/mark.h"
|
||||
#include "nvim/mbyte.h"
|
||||
#include "nvim/memline.h"
|
||||
@@ -7012,7 +7013,7 @@ void spell_dump_compl(char_u *pat, int ic, Direction *dir, int dumpflags_arg)
|
||||
arridx[0] = 0;
|
||||
curi[0] = 1;
|
||||
while (depth >= 0 && !got_int
|
||||
&& (pat == NULL || !compl_interrupted)) {
|
||||
&& (pat == NULL || !ins_compl_interrupted())) {
|
||||
if (curi[depth] > byts[arridx[depth]]) {
|
||||
// Done all bytes at this node, go up one level.
|
||||
--depth;
|
||||
|
Reference in New Issue
Block a user