Closed XavierChanth closed 3 months ago
Hi, sorry for the late reply. I don't use mini.ai
, I installed it and can replicate the issue, but currently don't know how to solve this.
Hi, sorry for the late reply. I don't use
mini.ai
, I installed it and can replicate the issue, but currently don't know how to solve this.
NP, I would love it if I could use your plugin, but I'll have to wait until I can dig in to the code and figure out the problem. Maybe an expert like @echasnovski can help? (Sorry if the ping is troublesome) 🙏🏻
Mr. Echasnovski already helped out a lot (I opened up an issue in mini.nvim repo and he supplied me with some great tips and information) and I think I can solve this bug.
It'll just have to wait a day or two since I'm busy now, thanks for understanding.
@XavierChanth I pushed the fix to this problem to the dev branch. Can you test it? I can no longer produce the bug when using mini.ai
.
Just to clarify the message in 75b44c5ddab5dd16440bfaa82075475d019e509d. It is not solely getcharstr()
that causes problems, but its usage inside expression mappings:
:h :map-expression
).getcharstr()
"blocks" the editor in the expression mapping state while allowing other scheduled functions to be executed. If those scheduled functions do something that is not allowed inside expression mapping, there is an error.on_key()
callback clears said callback (i.e. it stop being executed).@XavierChanth I pushed the fix to this problem to the dev branch. Can you test it? I can no longer produce the bug when using
mini.ai
.
Works great! Thanks for the quick response
Just to clarify the message in 75b44c5. It is not solely
getcharstr()
that causes problems, but its usage inside expression mappings:
- There is a list of things that are not allowed to do inside expression mappings (see
:h :map-expression
).getcharstr()
"blocks" the editor in the expression mapping state while allowing other scheduled functions to be executed. If those scheduled functions do something that is not allowed inside expression mapping, there is an error.- Error inside
on_key()
callback clears said callback (i.e. it stop being executed).
Thank you for all the help! I already went through everything you mentioned in the mini.ai
issue I opened, but I'll update the commit message for additional clarity.
Works great! Thanks for the quick response
Thank you for testing! I merged this fix, it's now available in the 2.3.1 release.
Problem
di"
the last thing Screen key shows isd
noi or "
or anything else after that.I am using mini.ai which I think may part of the problem, I'm not very knowledgeable in how vim objects behave, let alone custom ones.
Snapshot of loaded dependencies when the problem occurred:
Steps to reproduce
See problem above
Screenkey log output
The log is empty, even when I run an instance of nvim without having done
di"
Expected behavior
No response
Neovim version (
nvim -v
)NVIM v0.10.0 Build type: Release LuaJIT 2.1.1713773202
Terminal name/version
wezterm 20240203-110809-5046fc22