diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-02-09 22:28:20 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-02-09 22:28:20 +0100 |
commit | f1f6f3f7df2938b3583e341482d96c1d53124c51 (patch) | |
tree | ff07d6af56fb33134bc736f4721e9c7f40667bfd /src/ex_docmd.c | |
parent | 31eb139b8877439d06db0ca57692dfe35fec3f0c (diff) | |
download | vim-git-f1f6f3f7df2938b3583e341482d96c1d53124c51.tar.gz |
patch 8.0.0324: illegal memory access with a wrong yank rangev8.0.0324
Problem: Illegal memory access with "1;y".
Solution: Call check_cursor() instead of check_cursor_lnum(). (Dominique
Pelle, closes #1455)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 3ee7056c1..09102b537 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -2295,8 +2295,8 @@ do_one_cmd( if (!ea.skip) { curwin->w_cursor.lnum = ea.line2; - /* don't leave the cursor on an illegal line */ - check_cursor_lnum(); + /* don't leave the cursor on an illegal line or column */ + check_cursor(); } } else if (*ea.cmd != ',') |