diff options
author | 2019-06-27 15:17:41 +0000 | |
---|---|---|
committer | 2019-06-27 15:17:41 +0000 | |
commit | bc174b93cb3a8ff3fe3bfe7fcdf9f32fe19f9054 (patch) | |
tree | b906d51450f458e6c0422b50b218aa3490a33790 /usr.bin/tmux/grid.c | |
parent | Fix mandoc_normdate() and the way it is used. (diff) | |
download | wireguard-openbsd-bc174b93cb3a8ff3fe3bfe7fcdf9f32fe19f9054.tar.xz wireguard-openbsd-bc174b93cb3a8ff3fe3bfe7fcdf9f32fe19f9054.zip |
Add support for underscore colours with Setulc capability, mostly from
Kai Moschcau.
Diffstat (limited to 'usr.bin/tmux/grid.c')
-rw-r--r-- | usr.bin/tmux/grid.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/tmux/grid.c b/usr.bin/tmux/grid.c index 6d070c9907e..3e75f8f6076 100644 --- a/usr.bin/tmux/grid.c +++ b/usr.bin/tmux/grid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grid.c,v 1.95 2019/05/26 17:34:45 nicm Exp $ */ +/* $OpenBSD: grid.c,v 1.96 2019/06/27 15:17:41 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -37,12 +37,12 @@ /* Default grid cell data. */ const struct grid_cell grid_default_cell = { - 0, 0, 8, 8, { { ' ' }, 0, 1, 1 } + 0, 0, 8, 8, 0, { { ' ' }, 0, 1, 1 } }; /* Cleared grid cell data. */ const struct grid_cell grid_cleared_cell = { - GRID_FLAG_CLEARED, 0, 8, 8, { { ' ' }, 0, 1, 1 } + GRID_FLAG_CLEARED, 0, 8, 8, 0, { { ' ' }, 0, 1, 1 } }; static const struct grid_cell_entry grid_cleared_entry = { GRID_FLAG_CLEARED, { .data = { 0, 8, 8, ' ' } } @@ -82,6 +82,8 @@ grid_need_extended_cell(const struct grid_cell_entry *gce, return (1); if ((gc->fg & COLOUR_FLAG_RGB) || (gc->bg & COLOUR_FLAG_RGB)) return (1); + if (gc->us != 0) /* only supports 256 or RGB */ + return (1); return (0); } |