1
0
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:
Bram Moolenaar
2016-04-02 22:14:51 +02:00
parent fd773e9e88
commit cb0700844c
4 changed files with 308 additions and 296 deletions

View File

@@ -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