From 40c01c2d370e637e2ed4dfd247fdecdb84b4ac81 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 25 Oct 2024 19:36:38 +0000 Subject: [PATCH] Allow tabs even on terminals without UTF-8, reported by jmc. --- tty.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tty.c b/tty.c index f1fd47bc..f4676170 100644 --- a/tty.c +++ b/tty.c @@ -1361,6 +1361,8 @@ tty_check_codeset(struct tty *tty, const struct grid_cell *gc) /* Characters less than 0x7f are always fine, no matter what. */ if (gc->data.size == 1 && *gc->data.data < 0x7f) return (gc); + if (gc->flags & GRID_FLAG_TAB) + return (gc); /* UTF-8 terminal and a UTF-8 character - fine. */ if (tty->client->flags & CLIENT_UTF8)