diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2024-10-25 19:36:39 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2024-10-25 19:36:39 +0000 |
commit | 3de52e7cbf6c4af984ddca3c98b690208dcb97bc (patch) | |
tree | 108ca97bf24899840ed124f071ee289ec612fe92 | |
parent | f7e8676e318ad7ddea4d4a7d69a79f053bb4c58c (diff) |
Allow tabs even on terminals without UTF-8, reported by jmc.
-rw-r--r-- | usr.bin/tmux/tty.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index 83e665f099b..bd306e156fc 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.439 2024/09/30 08:10:20 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.440 2024/10/25 19:36:38 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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) |