nano

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

commit 946755a307d93ea3b4fbae66bca07e5fdb011072
parent 98b1f8f05904a18cf49520ba788e1a7ee8fff461
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 16 Jan 2019 19:37:10 +0100

options: disable hard-wrapping and automatic newlines by default

Also, enable smooth scrolling by default, and don't waste the row
directly below the title bar.  The use of the latter also serves
as a small visual reminder that this nano is different.

This addresses https://savannah.gnu.org/bugs/?55067.

Diffstat:
Msrc/nano.c | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/nano.c b/src/nano.c @@ -2078,6 +2078,14 @@ int main(int argc, char **argv) SET(NO_WRAP); #endif + /* Set sensible defaults, different from what Pico does. */ + SET(NO_WRAP); + SET(NO_NEWLINES); + SET(SMOOTH_SCROLL); + + /* Give a small visual hint that nano has changed. */ + SET(MORE_SPACE); + /* If the executable's name starts with 'r', activate restricted mode. */ if (*(tail(argv[0])) == 'r') SET(RESTRICTED);