mirror of
https://github.com/neovim/neovim.git
synced 2025-01-01 17:23:36 -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)
|
if (curwin->w_cursor.lnum != tpos.lnum)
|
||||||
curwin->w_cursor = tpos;
|
curwin->w_cursor = tpos;
|
||||||
else {
|
else {
|
||||||
|
/* reset tpos, could have been invalidated in the loop above */
|
||||||
|
tpos = curwin->w_cursor;
|
||||||
tpos.col++;
|
tpos.col++;
|
||||||
if (cc != NUL && gchar_pos(&tpos) == NUL) {
|
if (cc != NUL && gchar_pos(&tpos) == NUL) {
|
||||||
++curwin->w_cursor.col; // put cursor back on the NUL
|
++curwin->w_cursor.col; // put cursor back on the NUL
|
||||||
|
@ -253,7 +253,7 @@ static int included_patches[] = {
|
|||||||
//517,
|
//517,
|
||||||
516,
|
516,
|
||||||
//515,
|
//515,
|
||||||
//514,
|
514,
|
||||||
513,
|
513,
|
||||||
//512 NA
|
//512 NA
|
||||||
//511 NA
|
//511 NA
|
||||||
|
Loading…
Reference in New Issue
Block a user