mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
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>
This commit is contained in:
committed by
Christian Brabandt
parent
baaf6deb95
commit
9d997addc7
@@ -1309,6 +1309,9 @@ typedef struct mapblock mapblock_T;
|
||||
struct mapblock
|
||||
{
|
||||
mapblock_T *m_next; // next mapblock in list
|
||||
mapblock_T *m_alt; // pointer to mapblock of the same mapping
|
||||
// with an alternative form of m_keys, or NULL
|
||||
// if there is no such mapblock
|
||||
char_u *m_keys; // mapped from, lhs
|
||||
char_u *m_str; // mapped to, rhs
|
||||
char_u *m_orig_str; // rhs as entered by the user
|
||||
|
Reference in New Issue
Block a user