[prev in list] [next in list] [prev in thread] [next in thread]
List: nano-devel
Subject: [Nano-devel] [PATCH 1/3] options: disable hard-wrapping and automatic newlines by default
From: Benno Schulenberg <bensberg () telfort ! nl>
Date: 2019-01-16 18:58:17
Message-ID: 20190116185819.13507-1-bensberg () telfort ! nl
[Download RAW message or body]
Also, enable smooth scrolling by default, and don't waste the row
directly below the title bar. The latter also serves as a reminder
that this nano is different.
This addresses https://savannah.gnu.org/bugs/?55067.
---
src/nano.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/nano.c b/src/nano.c
index ec0bb038..b801a150 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -2071,12 +2071,13 @@ int main(int argc, char **argv)
" -- please report a bug\n", (int)MB_CUR_MAX);
#endif
-#if !defined(ENABLE_NANORC) && defined(DISABLE_ROOTWRAPPING)
- /* If we don't have rcfile support, --disable-wrapping-as-root is
- * used, and we're root, turn wrapping off. */
- if (geteuid() == NANO_ROOT_UID)
- 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')
--
2.19.2
_______________________________________________
Nano-devel mailing list
Nano-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/nano-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic