diff --git a/src/base.rs b/src/base.rs index 5c6bdb9..e46088d 100644 --- a/src/base.rs +++ b/src/base.rs @@ -1276,10 +1276,12 @@ fn picker_from_termios(protocol_type: Option) -> Option { }, }; + // `guess_protocol` also does tmux detection, + // run it always then overwrite the guessed protocol if needed + picker.guess_protocol(); + if let Some(protocol_type) = protocol_type { picker.protocol_type = protocol_type; - } else { - picker.guess_protocol(); } Some(picker)