summaryrefslogtreecommitdiff
path: root/src/term.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-05-03 21:10:36 +0200
committerBram Moolenaar <Bram@vim.org>2019-05-03 21:10:36 +0200
commit61df0c7996d9acc94267735abc214cb176e63ede (patch)
treeee24e18a7ab0a118dc0424dc58f73fb606651143 /src/term.c
parent92b9e60cb5775ebe8949b4e112feb9f8565441e0 (diff)
downloadvim-git-61df0c7996d9acc94267735abc214cb176e63ede.tar.gz
patch 8.1.1254: mapping completion contains dead codev8.1.1254
Problem: Mapping completion contains dead code. Solution: Remove the code.
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/term.c b/src/term.c
index 08a55632f..4a39fe3df 100644
--- a/src/term.c
+++ b/src/term.c
@@ -6649,7 +6649,6 @@ translate_mapping(char_u *str)
int modifiers;
int cpo_bslash;
int cpo_special;
- int cpo_keycode;
ga_init(&ga);
ga.ga_itemsize = 1;
@@ -6657,7 +6656,6 @@ translate_mapping(char_u *str)
cpo_bslash = (vim_strchr(p_cpo, CPO_BSLASH) != NULL);
cpo_special = (vim_strchr(p_cpo, CPO_SPECI) != NULL);
- cpo_keycode = (vim_strchr(p_cpo, CPO_KEYCODE) == NULL);
for (; *str; ++str)
{
@@ -6671,22 +6669,6 @@ translate_mapping(char_u *str)
modifiers = *++str;
c = *++str;
}
- if (cpo_special && cpo_keycode && c == K_SPECIAL && !modifiers)
- {
- int i;
-
- /* try to find special key in termcodes */
- for (i = 0; i < tc_len; ++i)
- if (termcodes[i].name[0] == str[1]
- && termcodes[i].name[1] == str[2])
- break;
- if (i < tc_len)
- {
- ga_concat(&ga, termcodes[i].code);
- str += 2;
- continue; /* for (str) */
- }
- }
if (c == K_SPECIAL && str[1] != NUL && str[2] != NUL)
{
if (cpo_special)