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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user