mirror of
https://github.com/tmux/tmux.git
synced 2026-10-13 06:04:34 +00:00
Reset background colour before clearing to end of line.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: tty-draw.c,v 1.17 2026/09/22 06:49:47 nicm Exp $ */
|
/* $OpenBSD: tty-draw.c,v 1.18 2026/10/12 15:28:45 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2026 Nicholas Marriott <nicholas.marriott@gmail.com>
|
* Copyright (c) 2026 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||||
@@ -253,6 +253,10 @@ tty_draw_line(struct tty *tty, struct screen *s, u_int px, u_int py, u_int nx,
|
|||||||
/* Outside the area being drawn. */
|
/* Outside the area being drawn. */
|
||||||
empty = nx - i;
|
empty = nx - i;
|
||||||
gcp = &grid_default_cell;
|
gcp = &grid_default_cell;
|
||||||
|
|
||||||
|
/* Flush the background before clearing. */
|
||||||
|
if (empty != 0 && gcp->bg != last.bg)
|
||||||
|
empty = 0;
|
||||||
} else {
|
} else {
|
||||||
/* Get the current cell. */
|
/* Get the current cell. */
|
||||||
grid_view_get_cell(gd, px + i, py, &gc);
|
grid_view_get_cell(gd, px + i, py, &gc);
|
||||||
|
|||||||
Reference in New Issue
Block a user