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:
12
src/screen.c
12
src/screen.c
@@ -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)
|
||||
|
Reference in New Issue
Block a user