lichray / nvi2

A multibyte fork of the nvi editor for BSD

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Moving away from a multi-width char across a line needs 2 'l' moves

lichray opened this issue · comments

From email:

When a double-width character does not fit in a line, and cursor
moves to that char by 'l' command, cursor is put on the 1st column
of that char, instead of the 2nd column. Then, if cursor moves
further from a double-width char in that line to a single-width one,
it is located on the 2nd column of the double-width char, instead of
the single-width char it moving toward.

http://mail-index.netbsd.org/tech-userlevel/2017/11/06/msg010940.html

The patch also fixes an issue on iTerm2, where when cursor indicates a
multi-width character, putting it on the first column of the character,
does not focus on the entire the character, the right-most column instead.