mirror of
https://github.com/wez/wezterm.git
synced 2024-11-13 07:22:52 +03:00
properly implement 0ec79a40f6
Properly pull out the legacy OSC code. Thanks tests!
This commit is contained in:
parent
8e6c2cfa2a
commit
2bac3a90bc
@ -261,8 +261,9 @@ impl OperatingSystemCommand {
|
||||
// So, for non-numeric OSCs, we look up the prefix and use that.
|
||||
// This only works if the non-numeric OSC code has length == 1.
|
||||
let osc_code = if !p1str.chars().nth(0).unwrap().is_ascii_digit() && osc.len() == 1 {
|
||||
let p1rest: String = p1str.chars().skip(1).collect();
|
||||
OperatingSystemCommandCode::from_code(&p1rest)
|
||||
let mut p1 = String::new();
|
||||
p1.push(p1str.chars().nth(0).unwrap());
|
||||
OperatingSystemCommandCode::from_code(&p1)
|
||||
} else {
|
||||
OperatingSystemCommandCode::from_code(&p1str)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user