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

fix(util): only collect valid <> keys #438

Merged
merged 1 commit into from Apr 16, 2023
Merged

Conversation

alaviss
Copy link
Contributor

@alaviss alaviss commented Apr 16, 2023

neovim is very lenient on the parsing of < in mappings. If the <> pairs did not enclose a valid special key, the entire sequence will be treated as <lt>[keys here]>.

To handle this, simply cross reference against the internal representation to see if the key should be treated as a special key.

Ref #435 (comment)

neovim is very lenient on the parsing of `<` in mappings. If the `<>`
pairs did not enclose a valid special key, the entire sequence will be
treated as `<lt>[keys here]>`.

To handle this, simply cross reference against the internal
representation to see if the key should be treated as a special key.
@folke folke merged commit 4bd6dca into folke:main Apr 16, 2023
3 checks passed
@alaviss alaviss deleted the fix-parse_keys branch April 16, 2023 22:11
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.

None yet

2 participants