From 97581ed20ffa30a8006e65b7180cd017679b2374 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 12 Oct 2024 10:54:09 +0200 Subject: [PATCH] Do send bracketed paste inside midnight commander It can handle it fine (well, it simply strips the control sequences..). --- src/input_common.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/input_common.rs b/src/input_common.rs index d566575a4..e263f29fd 100644 --- a/src/input_common.rs +++ b/src/input_common.rs @@ -474,14 +474,11 @@ fn test_parse_version() { } pub fn terminal_protocols_enable_ifn() { - if IN_MIDNIGHT_COMMANDER.load() { - return; - } if TERMINAL_PROTOCOLS.load(Ordering::Relaxed) { return; } TERMINAL_PROTOCOLS.store(true, Ordering::Release); - let sequences = if IN_WEZTERM.load() { + let sequences = if IN_WEZTERM.load() || IN_MIDNIGHT_COMMANDER.load() { "\x1b[?2004h" } else if IN_ITERM_PRE_CSI_U.load() { concat!("\x1b[?2004h", "\x1b[>4;1m", "\x1b[>5u", "\x1b=",)