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)

f1f6f3f7df
This commit is contained in:
KunMing Xie
2017-09-18 02:04:17 +08:00
committed by Justin M. Keyes
parent 009c695f0a
commit cf59d617bc
3 changed files with 16 additions and 4 deletions

View File

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