]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0814: mapset() may remove unrelated mapping v9.1.0814
authorzeertzjq <zeertzjq@outlook.com>
Thu, 24 Oct 2024 19:43:43 +0000 (21:43 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 24 Oct 2024 19:43:43 +0000 (21:43 +0200)
commitfdf135a0525746cc0ff85bed2fbbde320ddb6d0d
tree7994f51c8775606bf4c4c867e6cbe9580be8d464
parent118072862b7c01cceb22f28fd85b1621cf03a2d1
patch 9.1.0814: mapset() may remove unrelated mapping

Problem:  mapset() may remove unrelated mapping whose {rhs} matches the
          restored mapping's {lhs}.
Solution: only match by {lhs} when unmapping for mapset() (zeertzjq).

closes: #15935

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/map.c
src/testdir/test_map_functions.vim
src/version.c
src/vim.h