aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-05-13 11:31:17 +0800
committerGitHub <noreply@github.com>2022-05-13 11:31:17 +0800
commit030417d80bac7fb3e9574b7cb1b81dca8fedda32 (patch)
tree49ec69a81ba5abdbc1b47bc7bcddd4de8e23aa1d /src
parent233c41cb8cfe1aa5a8520fe6104adacc53c0ece2 (diff)
downloadrneovim-030417d80bac7fb3e9574b7cb1b81dca8fedda32.tar.gz
rneovim-030417d80bac7fb3e9574b7cb1b81dca8fedda32.tar.bz2
rneovim-030417d80bac7fb3e9574b7cb1b81dca8fedda32.zip
revert: "feat(mappings): do not simplify the rhs of a mapping" (#18553)
This reverts commit 7ac5359143ef25c4c8c0c427d5533f8d5824ed17. This fix can cause more problems than it solves.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/getchar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index 3c465db4f9..e64fda39e9 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -2904,8 +2904,8 @@ void set_maparg_lhs_rhs(const char *const orig_lhs, const size_t orig_lhs_len,
mapargs->rhs_len = 0;
mapargs->rhs_is_noop = true;
} else {
- replaced = replace_termcodes(orig_rhs, orig_rhs_len, &rhs_buf,
- REPTERM_DO_LT | REPTERM_NO_SIMPLIFY, NULL, cpo_flags);
+ replaced = replace_termcodes(orig_rhs, orig_rhs_len, &rhs_buf, REPTERM_DO_LT, NULL,
+ cpo_flags);
mapargs->rhs_len = STRLEN(replaced);
// XXX: even when orig_rhs is non-empty, replace_termcodes may produce an empty string.
mapargs->rhs_is_noop = orig_rhs[0] != NUL && mapargs->rhs_len == 0;