-
Notifications
You must be signed in to change notification settings - Fork 37
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
bug: wrong labe positioning on double-width chars #90
Comments
By default labels are placed after the matches, so this works as it should. There's multiple options to put the labels somewhere else. Please refer to the config section of the readme |
Sorry, my example was incomplete. I noticed this behavior when trying f-motion. Could you compare these two with a buffer containing -- label on x works
require("flash").jump({pattern = "x", search = { wrap = false }, label = { after = {0, 0}, before = false }})
-- trying to label あ
require("flash").jump({pattern = "あ", search = { wrap = false }, label = { after = {0, 0}, before = false }}) |
I think flash.nvim/lua/flash/plugins/char.lua Line 19 in 13022c0
|
Should be fixed now! |
Thanks, perfect!! |
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.10.0-dev-585+g2e055e49a
Operating system/version
Manjaro Linux
Describe the bug
When patteren has double-width chars, label is placed on a next character of the matches.
Below is an example to search
あ
fromあxあxあxあxあxあx
.You can see labels are placed on
x
Steps To Reproduce
Expected Behavior
labels should be placed on
あ
Repro
The text was updated successfully, but these errors were encountered: