commit | ef6875be7a0b4dde9589e69b0a0229c4b976c45b | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Nov 12 18:59:25 2014 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Nov 12 18:59:25 2014 +0100 |
tree | c89cac94fc685ca7ab617511727eabdaa8487ce5 | |
parent | 42d84f8aed604e32e198a5fe31b3b7ab149ea63e [diff] [blame] |
updated for version 7.4.514 Problem: Memory access error. (Dominique Pelle) Solution: Update tpos. (Christian Brabandt)
diff --git a/src/edit.c b/src/edit.c index ee63daa..13faafe 100644 --- a/src/edit.c +++ b/src/edit.c
@@ -6918,6 +6918,8 @@ 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 */