-
Notifications
You must be signed in to change notification settings - Fork 46
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
Lexima inserts piece of its own source-code into buffer on <CR> in neovim #67
Comments
Okay… so, after a bit more digging I've narrowed down the cause of the issue to any of 3 custom rules I've added:
Any of these rules seems to cause this behavior. The rules themselves work at adding the No amount of escaping the |
Thanks for reporing but I can not replicate it. Please tell me your neovim version. and minimal nvim/init.vim file. |
My |
Sorry I could not replicate this issue. |
After setting up Lexima, I've noticed a bizarre bug… when typing
<CR>
in insert mode, a lexima rule will automatically enter its own source code into the buffer. This happens on any filetypes repeatably.The code in question is:
I believe the culpable code is this:
lexima.vim/autoload/lexima/insmode.vim
Lines 84 to 89 in 0aa05cb
My guess is that the
rule.char
is interpreted as a newline in the command, breaking the command, instead of the characters<CR>
indicating the carriage return.The text was updated successfully, but these errors were encountered: