mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
vim-patch:7.4.514
Problem: Memory access error. (Dominique Pelle) Solution: Update tpos. (Christian Brabandt) https://code.google.com/p/vim/source/detail?r=v7-4-514
This commit is contained in:
parent
0f2d02569c
commit
51aacc2dea
@ -5752,6 +5752,8 @@ stop_insert (
|
||||
if (curwin->w_cursor.lnum != tpos.lnum)
|
||||
curwin->w_cursor = tpos;
|
||||
else {
|
||||
/* reset tpos, could have been invalidated in the loop above */
|
||||
tpos = curwin->w_cursor;
|
||||
tpos.col++;
|
||||
if (cc != NUL && gchar_pos(&tpos) == NUL) {
|
||||
++curwin->w_cursor.col; // put cursor back on the NUL
|
||||
|
@ -253,7 +253,7 @@ static int included_patches[] = {
|
||||
//517,
|
||||
516,
|
||||
//515,
|
||||
//514,
|
||||
514,
|
||||
513,
|
||||
//512 NA
|
||||
//511 NA
|
||||
|
Loading…
Reference in New Issue
Block a user