summaryrefslogtreecommitdiff
path: root/src/misc2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-04-06 20:21:59 +0200
committerBram Moolenaar <Bram@vim.org>2021-04-06 20:21:59 +0200
commite3d1f4c982bd0fe05496448d7868268c75ff7bfb (patch)
treee272320895bfe5bc0c6d175ddcd213370d354ae0 /src/misc2.c
parente9b8b78e046b40b877c999432c4698edb3413d5d (diff)
downloadvim-git-e3d1f4c982bd0fe05496448d7868268c75ff7bfb.tar.gz
patch 8.2.2728: special key names don't work if 'isident' is clearedv8.2.2728
Problem: Special key names don't work if 'isident' is cleared. Solution: Add vim_isNormalIDc() and use it for special key names. (closes #2389)
Diffstat (limited to 'src/misc2.c')
-rw-r--r--src/misc2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/misc2.c b/src/misc2.c
index 90b8b5893..08e6ed936 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -2826,7 +2826,7 @@ find_special_key(
// Find end of modifier list
last_dash = src;
- for (bp = src + 1; *bp == '-' || vim_isIDc(*bp); bp++)
+ for (bp = src + 1; *bp == '-' || vim_isNormalIDc(*bp); bp++)
{
if (*bp == '-')
{
@@ -3121,10 +3121,10 @@ get_special_key_code(char_u *name)
for (i = 0; key_names_table[i].name != NULL; i++)
{
table_name = key_names_table[i].name;
- for (j = 0; vim_isIDc(name[j]) && table_name[j] != NUL; j++)
+ for (j = 0; vim_isNormalIDc(name[j]) && table_name[j] != NUL; j++)
if (TOLOWER_ASC(table_name[j]) != TOLOWER_ASC(name[j]))
break;
- if (!vim_isIDc(name[j]) && table_name[j] == NUL)
+ if (!vim_isNormalIDc(name[j]) && table_name[j] == NUL)
return key_names_table[i].key;
}
return 0;