forked from aniani/vim
patch 8.0.1223: crash when using autocomplete and tab pages
Problem: Crash when using autocomplete and tab pages. Solution: Check if the current tab changed. (Christian Brabandt, closes #2239)
This commit is contained in:
@@ -2313,7 +2313,8 @@ ins_char_bytes(char_u *buf, int charlen)
|
||||
|
||||
/* Copy bytes after the changed character(s). */
|
||||
p = newp + col;
|
||||
mch_memmove(p + newlen, oldp + col + oldlen,
|
||||
if (linelen > col + oldlen)
|
||||
mch_memmove(p + newlen, oldp + col + oldlen,
|
||||
(size_t)(linelen - col - oldlen));
|
||||
|
||||
/* Insert or overwrite the new character. */
|
||||
|
Reference in New Issue
Block a user