mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-09 20:21:16 -03:00
Fix iTerm2 detection on non-iTerm2 terminals
Fixes f0e007c439 (Relocate tty metadata and protocols and clean it up,
2025-06-19).
This commit is contained in:
@@ -47,10 +47,7 @@ fn detect() -> Self {
|
||||
let in_tmux = var_os("TMUX").is_some();
|
||||
|
||||
// Detect iTerm2 before 3.5.12.
|
||||
let pre_kitty_iterm2 = match get_iterm2_version() {
|
||||
None => true,
|
||||
Some(v) => v < (3, 5, 12),
|
||||
};
|
||||
let pre_kitty_iterm2 = get_iterm2_version().is_some_and(|v| v < (3, 5, 12));
|
||||
Self {
|
||||
in_midnight_commander,
|
||||
in_dvtm,
|
||||
|
||||
Reference in New Issue
Block a user