[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] [PATCH 1/3] options: disable hard-wrapping and automatic ne
From: |
Benno Schulenberg |
Subject: |
[Nano-devel] [PATCH 1/3] options: disable hard-wrapping and automatic newlines by default |
Date: |
Wed, 16 Jan 2019 19:58:17 +0100 |
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] [PATCH 1/3] options: disable hard-wrapping and automatic newlines by default,
Benno Schulenberg <=