Only apply kitty protocol MC hack in MC

This deactivated it everywhere
This commit is contained in:
Fabian Boehm 2024-10-26 22:24:22 +02:00
parent bd9fee417b
commit 0e62178320

View File

@ -3977,8 +3977,10 @@ fn reader_interactive_init(parser: &Parser) {
.set_one(L!("_"), EnvMode::GLOBAL, L!("fish").to_owned());
terminal_protocol_hacks();
IN_MIDNIGHT_COMMANDER_PRE_CSI_U
.store(parser.vars().get_unless_empty(L!("__mc_csi_u")).is_none());
IN_MIDNIGHT_COMMANDER_PRE_CSI_U.store(
parser.vars().get_unless_empty(L!("MC_TMPDIR")).is_some()
&& parser.vars().get_unless_empty(L!("__mc_csi_u")).is_none(),
);
}
/// Destroy data for interactive use.