nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit d764d7094f7bf78b9ca8c6d7eadd535e635beb43
parent 26515547210bdfee6a69e232687f3c27cb0607a8
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri, 24 Jan 2020 17:17:34 +0100

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.

Diffstat:
Msrc/nano.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

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