commit | 17c95d9608370559441bb73941ba6d9a4b6b26bd | [log] [tgz] |
---|---|---|
author | zeertzjq <zeertzjq@outlook.com> | Tue Apr 26 12:51:07 2022 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Apr 26 12:51:07 2022 +0100 |
tree | 35b1f01870169d44d32a5f5d4eb04264fc6ca664 | |
parent | abeb09b2c53054513812d1e56716e2a5abe8f354 [diff] [blame] |
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)
diff --git a/src/misc2.c b/src/misc2.c index c23c689..6641a27 100644 --- a/src/misc2.c +++ b/src/misc2.c
@@ -1561,7 +1561,7 @@ 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;