summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2024-11-04 08:52:14 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2024-11-04 08:52:14 +0000
commit7a559304071d9735835e61d444bd3e3fcf1327a5 (patch)
treeca720aec871c967b6728073a11175e033d8a80d8 /usr.bin/tmux
parentea9b1e853898469f993df7e5f6faba8962320e66 (diff)
Do not make padding cells extended (there can be a lot of them), from
Alexander Arch .
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/grid.c4
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);