1
0
forked from aniani/vim

patch 7.4.2322

Problem:    Access memory beyond the end of the line. (Dominique Pelle)
Solution:   Adjust the cursor column.
This commit is contained in:
Bram Moolenaar
2016-09-04 14:34:28 +02:00
parent dac1947bb3
commit bc54f3f3fe
3 changed files with 12 additions and 0 deletions

View File

@@ -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);