mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 23:38:17 +00:00
vim-patch:8.1.0888: the a: dict is not immutable as documented (#10819)
Problem: The a: dict is not immutable as documented.
Solution: Make the a:dict immutable, add a test. (Ozaki Kiichi, Yasuhiro
Matsumoto, closes vim/vim#3929)
31b816042f
This commit is contained in:

committed by
Daniel Hahler

parent
0e8ee37efd
commit
450a68b7cc
@@ -4183,7 +4183,7 @@ static int ins_compl_get_exp(pos_T *ini)
|
||||
if (tmp_ptr - ptr >= IOSIZE - len) {
|
||||
tmp_ptr = ptr + IOSIZE - len - 1;
|
||||
}
|
||||
STRNCPY(IObuff + len, ptr, tmp_ptr - ptr);
|
||||
STRLCPY(IObuff + len, ptr, IOSIZE - len);
|
||||
len += (int)(tmp_ptr - ptr);
|
||||
flags |= CONT_S_IPOS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user