aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-25 09:22:44 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-08-25 10:15:07 +0800
commitb1833bb33b49a26e7552548e3541ac1480fee452 (patch)
tree0eb53db012b149e0db32770473187f2bec10ce76 /src/nvim/getchar.c
parent45d09b46cebe928693f708b777e8b11ad6ec2602 (diff)
downloadrneovim-b1833bb33b49a26e7552548e3541ac1480fee452.tar.gz
rneovim-b1833bb33b49a26e7552548e3541ac1480fee452.tar.bz2
rneovim-b1833bb33b49a26e7552548e3541ac1480fee452.zip
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) https://github.com/vim/vim/commit/d94fbfc74a8b8073e7a256c95fa6f39fc527c726 Skip changes in comments for callback-related functions (not ported). Also make compl_busy static again.
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r--src/nvim/getchar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index 8a8efbc578..36ca31783e 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -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