nano

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

commit 93b25ce014a41c355f34c274d09c031a81417f5b
parent f8834652630027c07bfe7d95980e8da0e8ffaac8
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sat, 12 Sep 2020 12:21:24 +0200

tweaks: adjust some whitespace in the docs, and improve a comment

Diffstat:
Mdoc/nano.1 | 1-
Mdoc/nanorc.5 | 8+++-----
Msrc/nano.c | 5++---
Msrc/winio.c | 2+-
4 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/doc/nano.1 b/doc/nano.1 @@ -319,7 +319,6 @@ unless \fB\-\-restricted\fR is given too. Do not automatically hard-wrap the current line when it becomes overlong. This is the default. (This option is the opposite of \fB\-b\fR (\fB\-\-breaklonglines\fR) -- the last one given takes effect.) - .TP .BR \-x ", " \-\-nohelp Don't show the two help lines at the bottom of the screen. diff --git a/doc/nanorc.5 b/doc/nanorc.5 @@ -65,7 +65,6 @@ Quotes inside the \fIcharacters\fR parameters below should not be escaped. The last double quote on the line will be seen as the closing quote. .sp The supported commands and arguments are: - .TP 3 .B set afterends Make Ctrl+Right and Ctrl+Delete stop at word ends instead of beginnings. @@ -392,13 +391,13 @@ Start the definition of a syntax with this \fIname\fR. All subsequent \fBcolor\fR and other such commands will be added to this syntax, until a new \fBsyntax\fR command is encountered. - +.sp When \fBnano\fR is run, this syntax will be automatically activated if the current filename matches the extended regular expression \fIfileregex\fR. Or the syntax can be explicitly activated by using the \fB\-Y\fR or \fB\-\-syntax\fR command-line option followed by the \fIname\fR. - +.sp The syntax \fBdefault\fP is special: it takes no \fIfileregex\fR, and applies to files that don't match any syntax's regexes. The syntax \fBnone\fP is reserved; specifying it on the command line @@ -535,11 +534,10 @@ no longer be the case, for all letters. where \fIN\fR is a numeric value from 1 to 24. Example: F10. (Often, \fBF13\fR to \fBF24\fR can be typed as \fBF1\fR to \fBF12\fR with Shift.) - .TP .BR Ins " or " Del . .RE - +.sp Rebinding \fB^M\fR (Enter) or \fB^I\fR (Tab) is probably not a good idea. Rebinding \fB^[\fR (Esc) is not possible, because its keycode is the starter byte of Meta keystrokes and escape sequences. diff --git a/src/nano.c b/src/nano.c @@ -647,9 +647,8 @@ void usage(void) print_opt("-z", "--suspendable", N_("Enable suspension")); } -/* Display the current version of nano, the date and time it was - * compiled, contact information for it, and the configuration options - * it was compiled with. */ +/* Display the version number of this nano, a copyright notice, some contact + * information, and the configuration options this nano was compiled with. */ void version(void) { #ifdef REVISION diff --git a/src/winio.c b/src/winio.c @@ -2299,7 +2299,7 @@ void draw_row(int row, const char *converted, linestruct *line, size_t from_col) #endif wprintw(edit, " "); } -#endif +#endif /* ENABLE_LINENUMBERS */ /* First simply write the converted line -- afterward we'll add colors * and the marking highlight on just the pieces that need it. */