commit | dc5490e2cbc8c16022a23b449b48c1bd0083f366 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Jan 25 13:52:53 2022 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Jan 25 13:52:53 2022 +0000 |
tree | 5ce09149d3e81a253401460e4a46c1b98510a0d3 | |
parent | 85b6747abc15a7a81086db31289cf1b8b17e6cb1 [diff] [blame] |
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.
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 9520998..f5d93e6 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c
@@ -866,6 +866,8 @@ } appended_lines_mark(n, count); + if (VIsual_active) + check_pos(curbuf, &VIsual); msgmore((long)count); }