diff src/move.c @ 10102:b80ad55d62d8 v7.4.2322

commit https://github.com/vim/vim/commit/bc54f3f3fed4dc3556df8c46cee6739d211b0eb2 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 4 14:34:28 2016 +0200 patch 7.4.2322 Problem: Access memory beyond the end of the line. (Dominique Pelle) Solution: Adjust the cursor column.
author Christian Brabandt <cb@256bit.org>
date Sun, 04 Sep 2016 14:45:06 +0200
parents 4aead6a9b7a9
children d0b74b18e4b5
line wrap: on
line diff
--- 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);