Skip to content
This repository was archived by the owner on May 27, 2020. It is now read-only.
This repository was archived by the owner on May 27, 2020. It is now read-only.

Cursor and selections visualized with offset on lines with swedish characters #89

Open
@Yakimych

Description

@Yakimych

I've been trying to edit text in Swedish with oni2 and noticed that sometimes the cursor was being shown incorrectly when jumping by word or even searching with / or ?. The reason seems to be that every swedish character adds an extra offset to the cursor position. This is also a problem in visual mode and when highlighting searches:

oni2_swedish_offset

This offset gets returned from native code, and unfortunately I don't understand much of C code, but I ended up in e.g. normal.c: https://github.com/onivim/libvim/blob/master/src/normal.c#L4534 (in case this helps).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions