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

if expand fails, the trigger key is inserted #1523

Open
liushapku opened this issue Feb 26, 2023 · 1 comment
Open

if expand fails, the trigger key is inserted #1523

liushapku opened this issue Feb 26, 2023 · 1 comment

Comments

@liushapku
Copy link

liushapku commented Feb 26, 2023

I use <a-;> as a trigger key. If the expansion is failed, a string show as "<t_u;" is inserted.
I digged into the code, and see the following lines of code passes the trigger key to vim

self._handle_failure(self.expand_trigger, True)

resulting a sequence of keys \<a-;> feed into the insert mode, just like :call feedkey("i\<a-;>")

This behavior is unwanted. Please allow us to costomzie whether the trigger key should be passed through on failure, or set it to "False"

@pilgrimlyieu
Copy link
Contributor

pilgrimlyieu commented Sep 26, 2023

I agree so I have commented this part of codes.

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

No branches or pull requests

2 participants