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
parent
2651554721
commit
d764d7094f
|
@ -1302,10 +1302,11 @@ void terminal_init(void)
|
||||||
} else
|
} else
|
||||||
tcsetattr(0, TCSANOW, &desired_state);
|
tcsetattr(0, TCSANOW, &desired_state);
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef NANO_TINY
|
||||||
/* Tell the terminal to enable bracketed pastes. */
|
/* Tell the terminal to enable bracketed pastes. */
|
||||||
printf("\e[?2004h");
|
printf("\e[?2004h");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ask ncurses for a keycode, or assign a default one. */
|
/* Ask ncurses for a keycode, or assign a default one. */
|
||||||
|
|
Loading…
Reference in New Issue