1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Disable timeout-based paste detection if paste_use_bracketed_mode is on

This commit is contained in:
dequis 2015-12-12 01:17:48 -03:00
parent 8c98e07eab
commit 38d372eccb

View File

@ -737,7 +737,7 @@ static void sig_input(void)
if (paste_bracketed_mode) { if (paste_bracketed_mode) {
paste_bracketed_middle(); 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) if (paste_timeout_id != -1)
g_source_remove(paste_timeout_id); g_source_remove(paste_timeout_id);
paste_timeout_id = g_timeout_add(paste_detect_time, paste_timeout, NULL); paste_timeout_id = g_timeout_add(paste_detect_time, paste_timeout, NULL);