aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-04-29 21:00:58 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-04-29 21:12:48 +0800
commit7ac5359143ef25c4c8c0c427d5533f8d5824ed17 (patch)
tree50a8f20df8aa6b883a7cb2da0bcda564bd12c5dd /src
parent98f62a2cfa98363217fdfcf96b6c636e91dba84d (diff)
downloadrneovim-7ac5359143ef25c4c8c0c427d5533f8d5824ed17.tar.gz
rneovim-7ac5359143ef25c4c8c0c427d5533f8d5824ed17.tar.bz2
rneovim-7ac5359143ef25c4c8c0c427d5533f8d5824ed17.zip
feat(mappings): do not simplify the rhs of a mapping
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 0ce8f6e715..1284382fe8 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -2885,8 +2885,8 @@ void set_maparg_lhs_rhs(const char_u *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, NULL,
- cpo_flags);
+ replaced = replace_termcodes(orig_rhs, orig_rhs_len, &rhs_buf,
+ REPTERM_DO_LT | REPTERM_NO_SIMPLIFY, NULL, cpo_flags);
mapargs->rhs_len = STRLEN(replaced);
mapargs->rhs_is_noop = false;
mapargs->rhs = xcalloc(mapargs->rhs_len + 1, sizeof(char_u));