mirror of
https://github.com/tmux/tmux.git
synced 2024-11-01 07:08:49 +00:00
Allow tabs even on terminals without UTF-8, reported by jmc.
This commit is contained in:
parent
71a503e40c
commit
40c01c2d37
2
tty.c
2
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. */
|
/* Characters less than 0x7f are always fine, no matter what. */
|
||||||
if (gc->data.size == 1 && *gc->data.data < 0x7f)
|
if (gc->data.size == 1 && *gc->data.data < 0x7f)
|
||||||
return (gc);
|
return (gc);
|
||||||
|
if (gc->flags & GRID_FLAG_TAB)
|
||||||
|
return (gc);
|
||||||
|
|
||||||
/* UTF-8 terminal and a UTF-8 character - fine. */
|
/* UTF-8 terminal and a UTF-8 character - fine. */
|
||||||
if (tty->client->flags & CLIENT_UTF8)
|
if (tty->client->flags & CLIENT_UTF8)
|
||||||
|
Loading…
Reference in New Issue
Block a user