mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 15:21:47 +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:
@@ -27,6 +27,7 @@
|
||||
#include "nvim/getchar.h"
|
||||
#include "nvim/indent.h"
|
||||
#include "nvim/indent_c.h"
|
||||
#include "nvim/insexpand.h"
|
||||
#include "nvim/main.h"
|
||||
#include "nvim/mark.h"
|
||||
#include "nvim/mbyte.h"
|
||||
@@ -5849,7 +5850,7 @@ exit_matched:
|
||||
if (action == ACTION_EXPAND) {
|
||||
ins_compl_check_keys(30, false);
|
||||
}
|
||||
if (got_int || compl_interrupted) {
|
||||
if (got_int || ins_compl_interrupted()) {
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -5911,7 +5912,7 @@ exit_matched:
|
||||
}
|
||||
} else if (!found
|
||||
&& action != ACTION_EXPAND) {
|
||||
if (got_int || compl_interrupted) {
|
||||
if (got_int || ins_compl_interrupted()) {
|
||||
emsg(_(e_interr));
|
||||
} else if (type == FIND_DEFINE) {
|
||||
emsg(_("E388: Couldn't find definition"));
|
||||
|
Reference in New Issue
Block a user