fix(tabs): allow CJK in tab names (#2119)
This commit is contained in:
parent
99639be1c9
commit
72a5d4d619
2 changed files with 2 additions and 2 deletions
|
|
@ -1165,7 +1165,7 @@ impl Screen {
|
|||
},
|
||||
c => {
|
||||
// It only allows printable unicode
|
||||
if buf.iter().all(|u| matches!(u, 0x20..=0x7E | 0xA0..=0xFF)) {
|
||||
if buf.iter().all(|u| matches!(u, 0x20..=0x7E | 0x80..=0xFF)) {
|
||||
active_tab.name.push_str(c);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -2962,7 +2962,7 @@ impl Tab {
|
|||
// It only allows printable unicode, delete and backspace keys.
|
||||
let is_updatable = buf
|
||||
.iter()
|
||||
.all(|u| matches!(u, 0x20..=0x7E | 0xA0..=0xFF | 0x08 | 0x7F));
|
||||
.all(|u| matches!(u, 0x20..=0x7E | 0x80..=0xFF | 0x08 | 0x7F));
|
||||
if is_updatable {
|
||||
let s = str::from_utf8(&buf).with_context(err_context)?;
|
||||
active_terminal.update_name(s);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue