summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
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