Skip to content
This repository has been 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 opened this issue Jan 1, 2020 · 0 comments

Comments

@Yakimych
Copy link

Yakimych commented Jan 1, 2020

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).

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

No branches or pull requests

1 participant