commit | bc54f3f3fed4dc3556df8c46cee6739d211b0eb2 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Sep 04 14:34:28 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Sep 04 14:34:28 2016 +0200 |
tree | 8cad3ff909debe41bde01b8118e307dc10c77299 | |
parent | dac1947bb366ef43cd6da95acc730554e76d8b84 [diff] [blame] |
patch 7.4.2322 Problem: Access memory beyond the end of the line. (Dominique Pelle) Solution: Adjust the cursor column.
diff --git a/src/move.c b/src/move.c index 6322acf..a4d5f82 100644 --- a/src/move.c +++ b/src/move.c
@@ -2479,6 +2479,7 @@ foldAdjustCursor(); #endif cursor_correct(); + check_cursor_col(); if (retval == OK) beginline(BL_SOL | BL_FIX); curwin->w_valid &= ~(VALID_WCOL|VALID_WROW|VALID_VIRTCOL);