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.
master
Benno Schulenberg 2020-01-24 17:17:34 +01:00
parent 2651554721
commit d764d7094f
1 changed files with 2 additions and 1 deletions

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