mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
vim-patch:partial:8.2.4001: insert complete code uses global variables
Problem: Insert complete code uses global variables.
Solution: Make variables local to the file and use accessor functions.
(Yegappan Lakshmanan, closes vim/vim#9470)
d94fbfc74a
Skip changes in comments for callback-related functions (not ported).
Also make compl_busy static again.
This commit is contained in:
@@ -1881,7 +1881,7 @@ static bool at_ins_compl_key(void)
|
||||
c = p[3] & 0x1f;
|
||||
}
|
||||
return (ctrl_x_mode_not_default() && vim_is_ctrl_x_key(c))
|
||||
|| ((compl_cont_status & CONT_LOCAL) && (c == Ctrl_N || c == Ctrl_P));
|
||||
|| (compl_status_local() && (c == Ctrl_N || c == Ctrl_P));
|
||||
}
|
||||
|
||||
/// Check if typebuf.tb_buf[] contains a modifier plus key that can be changed
|
||||
|
Reference in New Issue
Block a user