aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/undo.c
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-01-26 22:39:45 +0100
committerGitHub <noreply@github.com>2022-01-26 22:39:45 +0100
commit6006e15e7ac055de1e87bbd12d17d017dfa8737f (patch)
tree642c79cdb1a78647d0ad400fb02e5b90fb67e996 /src/nvim/undo.c
parent17e2938b100070d91bd956c8734760ca16f6d3f2 (diff)
parent540264306b6340bdd8133cd3307b169f7708c4d6 (diff)
downloadrneovim-6006e15e7ac055de1e87bbd12d17d017dfa8737f.tar.gz
rneovim-6006e15e7ac055de1e87bbd12d17d017dfa8737f.tar.bz2
rneovim-6006e15e7ac055de1e87bbd12d17d017dfa8737f.zip
Merge pull request #17205 from clason/vim-8.2.4214
Vim 8.2.{4214,4215,4217,4219} various illegal memory accesses
Diffstat (limited to 'src/nvim/undo.c')
-rw-r--r--src/nvim/undo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c
index d18f35a43a..2d8df4cad8 100644
--- a/src/nvim/undo.c
+++ b/src/nvim/undo.c
@@ -2633,6 +2633,10 @@ static void u_undo_end(bool did_undo, bool absolute, bool quiet)
}
}
+ if (VIsual_active) {
+ check_pos(curbuf, &VIsual);
+ }
+
smsg_attr_keep(0,
_("%" PRId64 " %s; %s #%" PRId64 " %s"),
u_oldcount < 0 ? (int64_t)-u_oldcount : (int64_t)u_oldcount,