Fix ratatui-image tmux detection when used with a configured image protocol (#352)
This commit is contained in:
@@ -1276,10 +1276,12 @@ fn picker_from_termios(protocol_type: Option<ProtocolType>) -> Option<Picker> {
|
||||
},
|
||||
};
|
||||
|
||||
// `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)
|
||||
|
||||
Reference in New Issue
Block a user