diff options
author | 哇呜哇呜呀咦耶 <pingao777@gmail.com> | 2023-01-19 21:28:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-19 22:28:04 +0900 |
commit | f9a718872876b9ef2df263855081d9562104ce1d (patch) | |
tree | f933fa4387ee26b9da26fdd7c8dba287fb192572 /zellij-server/src/tab | |
parent | 04b294aabb1ac31ba385f6152c6f4c709bf85097 (diff) |
Support UTF-8 character in tab name and pane name (#2102)
* Support UTF-8 character in tab name and pane name
* Support UTF-8 character in tab name and pane name
Diffstat (limited to 'zellij-server/src/tab')
-rw-r--r-- | zellij-server/src/tab/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zellij-server/src/tab/mod.rs b/zellij-server/src/tab/mod.rs index 98555654d..093237eae 100644 --- a/zellij-server/src/tab/mod.rs +++ b/zellij-server/src/tab/mod.rs @@ -2680,7 +2680,9 @@ impl Tab { .with_context(err_context)?; // It only allows printable unicode, delete and backspace keys. - let is_updatable = buf.iter().all(|u| matches!(u, 0x20..=0x7E | 0x08 | 0x7F)); + let is_updatable = buf + .iter() + .all(|u| matches!(u, 0x20..=0x7E | 0xA0..=0xFF | 0x08 | 0x7F)); if is_updatable { let s = str::from_utf8(&buf).with_context(err_context)?; active_terminal.update_name(s); |