diff options
author | erw7 <erw7.github@gmail.com> | 2021-11-24 02:05:35 +0900 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-07-04 21:09:33 +0800 |
commit | 33ed85a2f62d2b8dbac131cb61d03ac601808342 (patch) | |
tree | e8926b05923c8245ab0a1c3f832723c61adce91a /src/nvim/map.c | |
parent | ab5929e1b0f13b8750c8a97d41396ac9a0769e18 (diff) | |
download | rneovim-33ed85a2f62d2b8dbac131cb61d03ac601808342.tar.gz rneovim-33ed85a2f62d2b8dbac131cb61d03ac601808342.tar.bz2 rneovim-33ed85a2f62d2b8dbac131cb61d03ac601808342.zip |
feat(tui): recognize keypad keys when using kitty keyboard protocol
Diffstat (limited to 'src/nvim/map.c')
-rw-r--r-- | src/nvim/map.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/map.c b/src/nvim/map.c index d27e40b4ee..d3058a5d52 100644 --- a/src/nvim/map.c +++ b/src/nvim/map.c @@ -30,6 +30,8 @@ #define int_eq kh_int_hash_equal #define handle_T_hash kh_int_hash_func #define handle_T_eq kh_int_hash_equal +#define KittyKey_hash kh_int_hash_func +#define KittyKey_eq kh_int_hash_equal #if defined(ARCH_64) # define ptr_t_hash(key) uint64_t_hash((uint64_t)(key)) @@ -162,6 +164,7 @@ static inline bool ColorKey_eq(ColorKey ae1, ColorKey ae2) } MAP_IMPL(int, int, DEFAULT_INITIALIZER) +MAP_IMPL(int, cstr_t, DEFAULT_INITIALIZER) MAP_IMPL(cstr_t, ptr_t, DEFAULT_INITIALIZER) MAP_IMPL(cstr_t, int, DEFAULT_INITIALIZER) MAP_IMPL(ptr_t, ptr_t, DEFAULT_INITIALIZER) @@ -177,6 +180,8 @@ MAP_IMPL(int, String, DEFAULT_INITIALIZER) MAP_IMPL(ColorKey, ColorItem, COLOR_ITEM_INITIALIZER) +MAP_IMPL(KittyKey, cstr_t, DEFAULT_INITIALIZER) + /// Deletes a key:value pair from a string:pointer map, and frees the /// storage of both key and value. /// |