mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-19 13:19:51 -07:00
Fix ratatui-image
tmux detection when used with a configured image protocol (#352)
This commit is contained in:
parent
f4492c9f77
commit
e40a8a8d2e
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue