diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-05-02 22:53:45 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-02 22:53:45 +0100 |
commit | db08887f24d20be11d184ce321bc0890613e42bd (patch) | |
tree | 6e9feb7b98be9323db3220951107c1d2edd01d57 /src/highlight.c | |
parent | f4f579b46b27f5e1689912a3e84c6a2a96efd143 (diff) |
patch 8.2.4858: K_SPECIAL may be escaped twicev8.2.4858
Problem: K_SPECIAL may be escaped twice.
Solution: Avoid double escaping. (closes #10340)
Diffstat (limited to 'src/highlight.c')
-rw-r--r-- | src/highlight.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |