1
0
forked from aniani/vim

updated for version 7.4.514

Problem:    Memory access error. (Dominique Pelle)
Solution:   Update tpos. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2014-11-12 18:59:25 +01:00
parent 42d84f8aed
commit ef6875be7a
2 changed files with 4 additions and 0 deletions

View File

@@ -6918,6 +6918,8 @@ stop_insert(end_insert_pos, esc, nomove)
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 */