-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
fix(blockwise-visual): handle double-width chars and tabs #1596
fix(blockwise-visual): handle double-width chars and tabs #1596
Conversation
improvement: the selection direction is consistent with nvim
@xiyaowong Not sure I can follow the GIF. The issue you're fixing is that some characters are not selected which should? I merged the PR in my build and will report regressions, if any. |
56b446e
to
b064f9d
Compare
Isn't there a built in vim function to convert display col to col? Could this PR not be simplified to just converting the column before sending it to VS code? This code seems a little complex. |
Oh! I forgot to search for the built-in function. There is |
)" This reverts commit c554c06.
@theol0403 Not sure if |
Isn't there also a function to convert char to byte char? |
vim.str_utfindex I'll refactor it when I have time.😪 |
It seems almost the same vim.str_utfindex is widely used in nvim-lsp. Maybe it's better?. I'm not sure. I haven't used any of these functions. |
improvement: the selection direction is consistent with nvim
Issue - Fixed