Skip to content

Commit 752b109

Browse files
committed
updated for version 7.4.514
Problem: Memory access error. (Dominique Pelle) Solution: Update tpos. (Christian Brabandt)
1 parent 429e897 commit 752b109

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/edit.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6918,6 +6918,8 @@ stop_insert(end_insert_pos, esc, nomove)
69186918
curwin->w_cursor = tpos;
69196919
else
69206920
{
6921+
/* reset tpos, could have been invalidated in the loop above */
6922+
tpos = curwin->w_cursor;
69216923
tpos.col++;
69226924
if (cc != NUL && gchar_pos(&tpos) == NUL)
69236925
++curwin->w_cursor.col; /* put cursor back on the NUL */

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
514,
744746
/**/
745747
513,
746748
/**/

0 commit comments

Comments
 (0)