Skip to content

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

Description

@gerardbm

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions