Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle nvim_{buf_}get_keymap return no rhs due to 'callback' mapping #223

Merged
merged 2 commits into from
Jan 19, 2022

Conversation

levouh
Copy link
Contributor

@levouh levouh commented Jan 1, 2022

This is the only issue I've run into when using the new nvim_{buf_}set_keymap functions added recently. Not sure if there is a cleaner way to fix it, but essentially we can no longer rely on the mappings having a rhs (as returned from nvim_{buf_}get_keymap) if they instead define a callback as part of the opts key.

This is the only place where I can see that this API function is used.

Fixes #224

@folke folke merged commit 28d2bd1 into folke:main Jan 19, 2022
@folke
Copy link
Owner

folke commented Jan 19, 2022

Thanks!

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.

nvim_replace_termcodes error caused when using new keymap API callback
2 participants