patch 8.2.4497: wrong color for half of wide character next to pum scrollbar
Problem: Wrong color for half of wide character next to pum scrollbar.
Solution: Redraw the screen cell with the right color. (closes #9874)
diff --git a/src/screen.c b/src/screen.c
index adcc4b5..db1a763 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -1495,8 +1495,9 @@
int textlen,
int row,
int col,
- int attr)
+ int attr_arg)
{
+ int attr = attr_arg;
unsigned off;
char_u *ptr = text;
int len = textlen;
@@ -1722,8 +1723,10 @@
if (clear_next_cell)
{
// This only happens at the end, display one space next.
+ // Keep the attribute from before.
ptr = (char_u *)" ";
len = -1;
+ attr = ScreenAttrs[off];
}
}
else