From db08887f24d20be11d184ce321bc0890613e42bd Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 2 May 2022 22:53:45 +0100 Subject: patch 8.2.4858: K_SPECIAL may be escaped twice Problem: K_SPECIAL may be escaped twice. Solution: Avoid double escaping. (closes #10340) --- src/highlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/highlight.c') diff --git a/src/highlight.c b/src/highlight.c index 6a2b0874df..1e6f9c7066 100644 --- a/src/highlight.c +++ b/src/highlight.c @@ -1356,7 +1356,7 @@ highlight_set_startstop_termcode(int idx, char_u *key, char_u *arg, int init) // Copy characters from arg[] to buf[], translating <> codes. for (p = arg, off = 0; off < 100 - 6 && *p; ) { - len = trans_special(&p, buf + off, FSK_SIMPLIFY, NULL); + len = trans_special(&p, buf + off, FSK_SIMPLIFY, FALSE, NULL); if (len > 0) // recognized special char off += len; else // copy as normal char -- cgit v1.2.3