summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <bram@vim.org>2014-11-12 18:59:25 +0100
committerBram Moolenaar <bram@vim.org>2014-11-12 18:59:25 +0100
commit14594d0493bdbab05e80899dca2ce5475aa4cded (patch)
treed6c2b6241c1377cdb08eedc90de69eda3579eddf
parente2d7f22777d5c870c968e8c8d2505e37422831fc (diff)
downloadvim-14594d0493bdbab05e80899dca2ce5475aa4cded.tar.gz
updated for version 7.4.514v7.4.514v7-4-514
Problem: Memory access error. (Dominique Pelle) Solution: Update tpos. (Christian Brabandt)
-rw-r--r--src/edit.c2
-rw-r--r--src/version.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c
index ee63daa1..13faafeb 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -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 */
diff --git a/src/version.c b/src/version.c
index df18f5e9..5ca2f272 100644
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 514,
+/**/
513,
/**/
512,