diff options
author | KunMing Xie <qqzz014@gmail.com> | 2017-09-18 02:04:17 +0800 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-09-17 20:04:17 +0200 |
commit | cf59d617bc6d2aabb487c4d6be8082160a633a39 (patch) | |
tree | 25a98a8730e212c6134869a945a4b9a41b1a40a9 /src/nvim/ex_docmd.c | |
parent | 009c695f0a6c6da322f89e0f621d59d596e712fa (diff) | |
download | rneovim-cf59d617bc6d2aabb487c4d6be8082160a633a39.tar.gz rneovim-cf59d617bc6d2aabb487c4d6be8082160a633a39.tar.bz2 rneovim-cf59d617bc6d2aabb487c4d6be8082160a633a39.zip |
vim-patch:8.0.0324 (#7279)
Problem: Illegal memory access with "1;y".
Solution: Call check_cursor() instead of check_cursor_lnum(). (Dominique
Pelle, closes vim/vim#1455)
https://github.com/vim/vim/commit/f1f6f3f7df2938b3583e341482d96c1d53124c51
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index d1405978b3..bef5fd287e 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -1668,8 +1668,8 @@ static char_u * do_one_cmd(char_u **cmdlinep, if (*ea.cmd == ';') { if (!ea.skip) { curwin->w_cursor.lnum = ea.line2; - // Don't leave the cursor on an illegal line (caused by ';') - check_cursor_lnum(); + // don't leave the cursor on an illegal line or column + check_cursor(); } } else if (*ea.cmd != ',') { break; |