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.master
parent
98b1f8f059
commit
946755a307
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue