summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-03-03 11:46:00 +0000
committerBram Moolenaar <Bram@vim.org>2022-03-03 11:46:00 +0000
commit35d8c2010ea6ee5c9bcfa6a8285648172b92ed83 (patch)
treeca1dc088d5fcc6e11b15c5de07f329da7b9408b0 /src/screen.c
parentfe9112e630672dcd95e6b384c86f50c27ec10fed (diff)
downloadvim-git-35d8c2010ea6ee5c9bcfa6a8285648172b92ed83.tar.gz
patch 8.2.4497: wrong color for half of wide character next to pum scrollbarv8.2.4497
Problem: Wrong color for half of wide character next to pum scrollbar. Solution: Redraw the screen cell with the right color. (closes #9874)
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c
index adcc4b5ba..db1a763aa 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -1495,8 +1495,9 @@ screen_puts_len(
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 @@ screen_puts_len(
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