0
0
mirror of https://github.com/vim/vim.git synced 2025-10-01 04:54:07 -04:00

patch 8.1.2351: 'wincolor' not used for > for not fitting double width char

Problem:    'wincolor' not used for > for not fitting double width char.
            Also: popup drawn on right half of double width character looks
            wrong.
Solution:   Adjust color for > character.  Clear left half of double width
            character if right half is being overwritten.
This commit is contained in:
Bram Moolenaar
2019-11-26 22:39:10 +01:00
parent 0c0734d527
commit 92e25ab2df
4 changed files with 28 additions and 3 deletions

View File

@@ -460,6 +460,18 @@ screen_line(
}
#endif /* FEAT_RIGHTLEFT */
#ifdef FEAT_TEXT_PROP
// First char of a popup window may go on top of the right half of a
// double-wide character. Clear the left half to avoid it getting the popup
// window background color.
if (coloff > 0 && ScreenLines[off_to] == 0)
{
ScreenLines[off_to - 1] = ' ';
ScreenLinesUC[off_to - 1] = 0;
screen_char(off_to - 1, row, col + coloff - 1);
}
#endif
redraw_next = char_needs_redraw(off_from, off_to, endcol - col);
while (col < endcol)