-
Notifications
You must be signed in to change notification settings - Fork 196
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
lua: accepting completion may erroneusly overwrite text #634
Comments
I noticed this when trying to autocomplete a path, like when typing However this seems to not happen, when properly accepting the autocompletion entries every time. So typing The error instead occurs for me when using |
This appears to be an issue with
|
Pushed a fix that clamps the end character to the start character to mitigate the issue, but it would be helpful if someone reported this upstream |
Make sure you have done the following
blink.cmp
Bug Description
tmp.lua
nvim -u tmp.lua
local blink = require "
, completion appearsblink
with<C-y>
"
being erroneously overwrittenScreenshot for 3.
Screenshot for 4.
I can imagine this is a gnarly one, because expected behavior is presumably somewhat lua-specific, as in other contexts users do expect prefixes (in this case
"
to be overwritten).Relevant configuration
neovim version
NVIM v0.11.0-dev-1376+g738320188f Build type: Release LuaJIT 2.1.0-beta3 Run "nvim -V1 -v" for more info
blink.cmp
version: branch, tag, or commitmain
The text was updated successfully, but these errors were encountered: