]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0642: Check that mapping rhs starts with lhs fails if not simplified v9.1.0642
authorzeertzjq <zeertzjq@outlook.com>
Mon, 29 Jul 2024 19:10:07 +0000 (21:10 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 29 Jul 2024 19:10:07 +0000 (21:10 +0200)
commit9d997addc7bd0fd132a809cf497ed816e61fcd25
tree0ef7b82926d68d877b145c29396e7b063e56cf65
parentbaaf6deb957e11227c6ffa5e22b48d9082ae7e77
patch 9.1.0642: Check that mapping rhs starts with lhs fails if not simplified

Problem:  Check that mapping rhs starts with lhs doesn't work if lhs is
          not simplified.
Solution: Keep track of the mapblock containing the alternative lhs and
          also compare with it (zeertzjq).

fixes: #15376
closes: #15384

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