From 38d372eccb3745a7734b8f8963ae572d1343c5b1 Mon Sep 17 00:00:00 2001 From: dequis Date: Sat, 12 Dec 2015 01:17:48 -0300 Subject: [PATCH] Disable timeout-based paste detection if paste_use_bracketed_mode is on --- src/fe-text/gui-readline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c index 96b8b386..a9755318 100644 --- a/src/fe-text/gui-readline.c +++ b/src/fe-text/gui-readline.c @@ -737,7 +737,7 @@ static void sig_input(void) if (paste_bracketed_mode) { paste_bracketed_middle(); - } else if (paste_detect_time > 0 && paste_buffer->len >= 3) { + } else if (!paste_use_bracketed_mode && paste_detect_time > 0 && paste_buffer->len >= 3) { if (paste_timeout_id != -1) g_source_remove(paste_timeout_id); paste_timeout_id = g_timeout_add(paste_detect_time, paste_timeout, NULL);