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:
Abdelhakeem Osama
2019-08-21 21:17:09 +03:00
committed by Daniel Hahler
parent 0e8ee37efd
commit 450a68b7cc
5 changed files with 202 additions and 10 deletions

View File

@@ -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;
}