1
0
forked from aniani/vim

Fix: An unprintable multi-byte character at the start of the screen line

caused the following text to be drawn at the wrong position.
This commit is contained in:
Bram Moolenaar
2010-08-07 16:38:13 +02:00
parent bebca9daa4
commit 7ba6ed34fe
2 changed files with 3 additions and 5 deletions

View File

@@ -4005,8 +4005,9 @@ win_line(wp, lnum, startrow, endrow, nochange)
ptr += mb_l - 1;
/* If a double-width char doesn't fit at the left side display
* a '<' in the first column. */
if (n_skip > 0 && mb_l > 1)
* a '<' in the first column. Don't do this for unprintable
* charactes. */
if (n_skip > 0 && mb_l > 1 && n_extra == 0)
{
n_extra = 1;
c_extra = '<';