0
0
mirror of https://github.com/vim/vim.git synced 2025-10-01 04:54:07 -04:00

patch 8.2.4829: a key may be simplified to NUL

Problem:    A key may be simplified to NUL.
Solution:   Use K_ZERO instead.  Use macros instead of hard coded values.
            (closes #10290)
This commit is contained in:
zeertzjq
2022-04-26 12:51:07 +01:00
committed by Bram Moolenaar
parent abeb09b2c5
commit 17c95d9608
4 changed files with 14 additions and 2 deletions

View File

@@ -1561,7 +1561,7 @@ extract_modifiers(int key, int *modp, int simplify, int *did_simplify)
key = Ctrl_chr(key);
modifiers &= ~MOD_MASK_CTRL;
// <C-@> is <Nul>
if (key == 0)
if (key == NUL)
key = K_ZERO;
if (did_simplify != NULL)
*did_simplify = TRUE;