forked from aniani/vim
patch 7.4.1697
Problem: Display problems when the 'ambiwidth' and 'emoji' options are not set properly or the terminal doesn't behave as expected. Solution: After drawing an ambiguous width character always position the cursor.
This commit is contained in:
@@ -8052,7 +8052,9 @@ screen_char(unsigned off, int row, int col)
|
||||
buf[utfc_char2bytes(off, buf)] = NUL;
|
||||
|
||||
out_str(buf);
|
||||
if (utf_char2cells(ScreenLinesUC[off]) > 1)
|
||||
if (utf_ambiguous_width(ScreenLinesUC[off]))
|
||||
screen_cur_col = 9999;
|
||||
else if (utf_char2cells(ScreenLinesUC[off]) > 1)
|
||||
++screen_cur_col;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user