summaryrefslogtreecommitdiffstats
path: root/src/map.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-05-04 18:51:43 +0100
committerBram Moolenaar <Bram@vim.org>2022-05-04 18:51:43 +0100
commitac402f4d64bec6b6efd809fef52f5b34627bf947 (patch)
tree8cf3a9097adc75b03a37e67d74162b7b1706a9ac /src/map.c
parent47d4e317f85e4aeb3799d962f173bd0f1e7bc71c (diff)
patch 8.2.4867: listing of mapping with K_SPECIAL is wrongv8.2.4867
Problem: Listing of mapping with K_SPECIAL is wrong. Solution: Adjust escaping of special characters. (closes #10351)
Diffstat (limited to 'src/map.c')
-rw-r--r--src/map.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/map.c b/src/map.c
index 6ea73ebce2..762cce2d5f 100644
--- a/src/map.c
+++ b/src/map.c
@@ -189,17 +189,7 @@ showmap(
if (*mp->m_str == NUL)
msg_puts_attr("<Nop>", HL_ATTR(HLF_8));
else
- {
- // Remove escaping of CSI, because "m_str" is in a format to be used
- // as typeahead.
- char_u *s = vim_strsave(mp->m_str);
- if (s != NULL)
- {
- vim_unescape_csi(s);
- msg_outtrans_special(s, FALSE, 0);
- vim_free(s);
- }
- }
+ msg_outtrans_special(mp->m_str, FALSE, 0);
#ifdef FEAT_EVAL
if (p_verbose > 0)
last_set_msg(mp->m_script_ctx);