commit | 8d02ce1ed75d008c34a5c9aaa51b67cbb9d33baa | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Jan 25 18:24:00 2022 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Jan 25 18:24:00 2022 +0000 |
tree | b620fd43b0d5cc344278304738f6d9e6d67c3260 | |
parent | 06b77229ca704d00c4f138ed0377556e54d5851f [diff] [blame] |
patch 8.2.4217: illegal memory access when undo makes Visual area invalid Problem: Illegal memory access when undo makes Visual area invalid. Solution: Correct the Visual area after undo.
diff --git a/src/undo.c b/src/undo.c index 4d186d4..636144a 100644 --- a/src/undo.c +++ b/src/undo.c
@@ -3029,6 +3029,8 @@ } } #endif + if (VIsual_active) + check_pos(curbuf, &VIsual); smsg_attr_keep(0, _("%ld %s; %s #%ld %s"), u_oldcount < 0 ? -u_oldcount : u_oldcount,