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:
Florian Walch 2015-01-23 13:13:12 +01:00 committed by Justin M. Keyes
parent 0f2d02569c
commit 51aacc2dea
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -253,7 +253,7 @@ static int included_patches[] = {
//517,
516,
//515,
//514,
514,
513,
//512 NA
//511 NA