comparison src/misc2.c @ 28610:ce202d2984a0 v8.2.4829

patch 8.2.4829: a key may be simplified to NUL Commit: https://github.com/vim/vim/commit/17c95d9608370559441bb73941ba6d9a4b6b26bd Author: zeertzjq <zeertzjq@outlook.com> Date: Tue Apr 26 12:51:07 2022 +0100 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)
author Bram Moolenaar <Bram@vim.org>
date Tue, 26 Apr 2022 14:00:03 +0200
parents bef82285dda0
children 53c608c7ea9e
comparison
equal deleted inserted replaced
28609:d38d48b0205f 28610:ce202d2984a0
1559 && ((key >= '?' && key <= '_') || ASCII_ISALPHA(key))) 1559 && ((key >= '?' && key <= '_') || ASCII_ISALPHA(key)))
1560 { 1560 {
1561 key = Ctrl_chr(key); 1561 key = Ctrl_chr(key);
1562 modifiers &= ~MOD_MASK_CTRL; 1562 modifiers &= ~MOD_MASK_CTRL;
1563 // <C-@> is <Nul> 1563 // <C-@> is <Nul>
1564 if (key == 0) 1564 if (key == NUL)
1565 key = K_ZERO; 1565 key = K_ZERO;
1566 if (did_simplify != NULL) 1566 if (did_simplify != NULL)
1567 *did_simplify = TRUE; 1567 *did_simplify = TRUE;
1568 } 1568 }
1569 1569