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:
@@ -6918,6 +6918,8 @@ stop_insert(end_insert_pos, esc, nomove)
|
|||||||
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 */
|
||||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
514,
|
||||||
/**/
|
/**/
|
||||||
513,
|
513,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user