Skip to content

Fix keycode merge bugs introduced with 9875baef#230

Open
rene-descartes2021 wants to merge 1 commit intoliuchengxu:masterfrom
rene-descartes2021:keycode-merge-bugs
Open

Fix keycode merge bugs introduced with 9875baef#230
rene-descartes2021 wants to merge 1 commit intoliuchengxu:masterfrom
rene-descartes2021:keycode-merge-bugs

Conversation

@rene-descartes2021
Copy link
Collaborator

@rene-descartes2021 rene-descartes2021 commented Dec 6, 2022

Changes:

  • Fixes a problem with 9875bae (the improved merging commit), where if e.g. <C-I> exists in the dict and <Tab> doesn't, it will error with E741 on the call to extend(). I'm puzzled why this didn't occur in my earlier testing.
  • Broader use of s:KEYCODES and s:MERGE_INTO.
  • Improved the deepcopy() call in which_key#start(), will handle registration with a nested dictionary now, e.g. which_key#register('z', 'g:my_map.z'). Not sure of use-case but it works now.
  • Call to nr2char() replaced with which_key#char_handler#parse_raw().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant