summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/shared.lua
diff options
context:
space:
mode:
authorncrpy <61719652+ncrpy@users.noreply.github.com>2025-07-07 14:03:09 +0900
committerzeertzjq <zeertzjq@outlook.com>2025-07-08 06:40:07 +0800
commitd523750de0b3e753dcef20ca3fb622b015a307da (patch)
treeeae63cee423f411105b27c49fbd86047135adb53 /runtime/lua/vim/shared.lua
parentc3c8d25293fd4da8fa867d18a7d54b2dc8c3d010 (diff)
fix(api): populate lhsrawalt in nvim_get_keymap response
Problem: The `nvim_get_keymap()` function is missing the `lhsrawalt` field in its response for mappings with an alternate key representation. This makes its return value inconsistent with its documented `maparg()`-like structure and its formal type definition. Solution: Corrects the `keymap_array` function to pass the alternate mapping keys (`current_maphash->m_alt->m_keys`) to `mapblock_fill_dict`. The argument responsible for this was previously hardcoded to `NULL`. For example, for a mapping of `<C-x>`, the API will now correctly return both `lhsraw` (`<80><fc>^DX`) and `lhsrawalt` (the alternate form, e.g., `^X`).
Diffstat (limited to 'runtime/lua/vim/shared.lua')
0 files changed, 0 insertions, 0 deletions