diff options
author | 2018-10-25 15:13:38 +0000 | |
---|---|---|
committer | 2018-10-25 15:13:38 +0000 | |
commit | d78fd057ebd9961f54839e3496716dbe8796358d (patch) | |
tree | bd5e0aecf4833c8f5b77b8915bfde78d0416d03c /usr.bin/tmux/screen-write.c | |
parent | tweak description to conform to reality. (diff) | |
download | wireguard-openbsd-d78fd057ebd9961f54839e3496716dbe8796358d.tar.xz wireguard-openbsd-d78fd057ebd9961f54839e3496716dbe8796358d.zip |
Add a "terminal" colour which can be used instead of "default" in style
options for the terminal default colour, bypassing any inheritance from
other options. Prompted by a discussion with abieber@.
Diffstat (limited to 'usr.bin/tmux/screen-write.c')
-rw-r--r-- | usr.bin/tmux/screen-write.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/screen-write.c b/usr.bin/tmux/screen-write.c index ae9424de63f..20036732656 100644 --- a/usr.bin/tmux/screen-write.c +++ b/usr.bin/tmux/screen-write.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen-write.c,v 1.139 2018/10/18 08:38:01 nicm Exp $ */ +/* $OpenBSD: screen-write.c,v 1.140 2018/10/25 15:13:38 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -965,7 +965,7 @@ screen_write_clearline(struct screen_write_ctx *ctx, u_int bg) u_int sx = screen_size_x(s); gl = grid_get_line(s->grid, s->grid->hsize + s->cy); - if (gl->cellsize == 0 && bg == 8) + if (gl->cellsize == 0 && COLOUR_DEFAULT(bg)) return; screen_write_initctx(ctx, &ttyctx); @@ -988,7 +988,7 @@ screen_write_clearendofline(struct screen_write_ctx *ctx, u_int bg) u_int sx = screen_size_x(s); gl = grid_get_line(s->grid, s->grid->hsize + s->cy); - if (s->cx > sx - 1 || (s->cx >= gl->cellsize && bg == 8)) + if (s->cx > sx - 1 || (s->cx >= gl->cellsize && COLOUR_DEFAULT(bg))) return; screen_write_initctx(ctx, &ttyctx); |