From d764d7094f7bf78b9ca8c6d7eadd535e635beb43 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Fri, 24 Jan 2020 17:17:34 +0100 Subject: [PATCH] tweaks: don't enable bracketed pasting when not handling such pastes The tiny version is oblivious of bracketed pastes, as it serves no purpose: in the tiny version there is no auto-indent nor undo nor tabs-to-spaces conversion. --- src/nano.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nano.c b/src/nano.c index 44fa2d93..a0601b68 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1302,10 +1302,11 @@ void terminal_init(void) } else tcsetattr(0, TCSANOW, &desired_state); #endif - +#ifndef NANO_TINY /* Tell the terminal to enable bracketed pastes. */ printf("\e[?2004h"); fflush(stdout); +#endif } /* Ask ncurses for a keycode, or assign a default one. */