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.
This commit is contained in:
Benno Schulenberg 2020-01-24 17:17:34 +01:00
parent 2651554721
commit d764d7094f

View File

@ -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. */