mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +00:00
feat(tui): recognize keypad keys when using kitty keyboard protocol
This commit is contained in:
@@ -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.
|
||||
///
|
||||
|
Reference in New Issue
Block a user