vim-patch:8.2.4215: illegal memory access when copying lines in Visual mode

Problem:    Illegal memory access when copying lines in Visual mode.
Solution:   Adjust the Visual position after copying lines.
dc5490e2cb
This commit is contained in:
Christian Clason
2022-01-26 16:37:25 +01:00
parent de673966c3
commit b2b288f33c
2 changed files with 14 additions and 0 deletions

View File

@@ -1099,6 +1099,9 @@ void ex_copy(linenr_T line1, linenr_T line2, linenr_T n)
}
appended_lines_mark(n, count);
if (VIsual_active) {
check_pos(curbuf, &VIsual);
}
msgmore((long)count);
}