summaryrefslogtreecommitdiff
path: root/src/move.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-09-04 14:34:28 +0200
committerBram Moolenaar <Bram@vim.org>2016-09-04 14:34:28 +0200
commitbc54f3f3fed4dc3556df8c46cee6739d211b0eb2 (patch)
tree8cad3ff909debe41bde01b8118e307dc10c77299 /src/move.c
parentdac1947bb366ef43cd6da95acc730554e76d8b84 (diff)
downloadvim-git-bc54f3f3fed4dc3556df8c46cee6739d211b0eb2.tar.gz
patch 7.4.2322v7.4.2322
Problem: Access memory beyond the end of the line. (Dominique Pelle) Solution: Adjust the cursor column.
Diffstat (limited to 'src/move.c')
-rw-r--r--src/move.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/move.c b/src/move.c
index 6322acf98..a4d5f8299 100644
--- a/src/move.c
+++ b/src/move.c
@@ -2479,6 +2479,7 @@ onepage(int dir, long count)
foldAdjustCursor();
#endif
cursor_correct();
+ check_cursor_col();
if (retval == OK)
beginline(BL_SOL | BL_FIX);
curwin->w_valid &= ~(VALID_WCOL|VALID_WROW|VALID_VIRTCOL);