Skip to content
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

Can't move to the right when it finds a tilded character #56

Open
gerardbm opened this issue Oct 18, 2020 · 2 comments
Open

Can't move to the right when it finds a tilded character #56

gerardbm opened this issue Oct 18, 2020 · 2 comments

Comments

@gerardbm
Copy link

I'm not sure if this is possible to fix, but I can't move a char or a selection to the right side if there's a tilded character, for example:

this line has a tilded character just hére
                                      |

So the movement stops where there's the | symbol.

I checked the functions getpos() and getcurpos() in Vim (Vim-native functions) and of course this is the problem: the third coordinate jumps two numbers after the tilded character.

From [0, 1, 40, 0, 40] to [0, 1, 42, 0, 41], when it should be [0, 1, 41, 0, 41].

If you think it's a Vim issue, it's ok, but I think it's expected on Vim, so it should require a specific solution in plugin-territory.

The issue does not happen going to the left side.

@matze
Copy link
Owner

matze commented Oct 21, 2020

I don't really understand the problem. You try move starting from hére or the entire line containing it?

@gerardbm
Copy link
Author

The issue appears when you try to move characters or words from the letf to right (horizontally) in the same line. From right to left, it can move perfectly. So it only happens from left to right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants