diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2024-11-04 08:52:14 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2024-11-04 08:52:14 +0000 |
commit | 7a559304071d9735835e61d444bd3e3fcf1327a5 (patch) | |
tree | ca720aec871c967b6728073a11175e033d8a80d8 /usr.bin | |
parent | ea9b1e853898469f993df7e5f6faba8962320e66 (diff) |
Do not make padding cells extended (there can be a lot of them), from
Alexander Arch .
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/grid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/grid.c b/usr.bin/tmux/grid.c index 09773477a86..a11c96f0455 100644 --- a/usr.bin/tmux/grid.c +++ b/usr.bin/tmux/grid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grid.c,v 1.132 2024/10/25 15:00:18 nicm Exp $ */ +/* $OpenBSD: grid.c,v 1.133 2024/11/04 08:52:13 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -84,7 +84,7 @@ grid_need_extended_cell(const struct grid_cell_entry *gce, return (1); if (gc->attr > 0xff) return (1); - if (gc->data.size != 1 || gc->data.width != 1) + if (gc->data.size > 1 || gc->data.width > 1) return (1); if ((gc->fg & COLOUR_FLAG_RGB) || (gc->bg & COLOUR_FLAG_RGB)) return (1); |