-
-
Notifications
You must be signed in to change notification settings - Fork 853
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
builtin.symbols inserts symbol at wrong position #3217
Comments
May be related to #2534 |
Thanks for reporting. Should be fixed now. |
Well, it's almost fixed. Now |
Are you talking about the position of the cursor and not the location of the symbol placement? The former, I suppose it puts you back in the original buffer in insert mode when doing |
Yes.
To me too.
I'm not sure. When you press |
Ok yeah, that is related to the mode difference since going from insert to normal mode always shifts you one column left. |
Ok should be all good now. Let me know if there's something else. |
Well, it's a bit non-intuitive because sequental calls of BTW, when called using insert-mode keymap it does not have this issue, it inserts emojis in a row, one-by-one. Please don't fix this. 😄 |
Description
The
symbols
picker work in different ways depending on how it was started:builtin
picker and then selectsymbols
then everything works correctly (it inserts symbol after a character under cursor).symbols
picker then chosen symbol inserted at wrong position (after 2 bytes instead of after 1 character).Neovim version
Operating system and version
Gentoo Linux
Telescope version / branch / rev
master
checkhealth telescope
Steps to reproduce
nvim -u repro.lua
:Telescope symbols
then<Enter>
:Telescope symbols
then<Enter>
But this one works correctly:
nvim -u repro.lua
:Telescope builtin
thensymbols<Enter>
then<Enter>
:Telescope builtin
thensymbols<Enter>
then<Enter>
Expected behavior
😀😀
Actual behavior
<f0><9f>😀<98><80>
Second emoji was inserted in the middle of the first emoji's bytes.
If try to insert emoji on English text "abc" with cursor at "a" then
:Telescope builtin
→symbols
result in "a😀bc" while:Telescope symbols
result in "ab😀c"Minimal config
The text was updated successfully, but these errors were encountered: