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

master
Benno Schulenberg 2020-09-12 12:21:24 +02:00
parent f883465263
commit 93b25ce014
4 changed files with 6 additions and 10 deletions

View File

@ -319,7 +319,6 @@ unless \fB\-\-restricted\fR is given too.
Do not automatically hard-wrap the current line when it becomes overlong. 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 This is the default. (This option is the opposite of \fB\-b\fR
(\fB\-\-breaklonglines\fR) -- the last one given takes effect.) (\fB\-\-breaklonglines\fR) -- the last one given takes effect.)
.TP .TP
.BR \-x ", " \-\-nohelp .BR \-x ", " \-\-nohelp
Don't show the two help lines at the bottom of the screen. Don't show the two help lines at the bottom of the screen.

View File

@ -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. The last double quote on the line will be seen as the closing quote.
.sp .sp
The supported commands and arguments are: The supported commands and arguments are:
.TP 3 .TP 3
.B set afterends .B set afterends
Make Ctrl+Right and Ctrl+Delete stop at word ends instead of beginnings. 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 All subsequent \fBcolor\fR and other such commands
will be added to this syntax, until a new \fBsyntax\fR will be added to this syntax, until a new \fBsyntax\fR
command is encountered. command is encountered.
.sp
When \fBnano\fR is run, this syntax will be automatically When \fBnano\fR is run, this syntax will be automatically
activated if the current filename matches the extended regular activated if the current filename matches the extended regular
expression \fIfileregex\fR. Or the syntax can be explicitly expression \fIfileregex\fR. Or the syntax can be explicitly
activated by using the \fB\-Y\fR or \fB\-\-syntax\fR activated by using the \fB\-Y\fR or \fB\-\-syntax\fR
command-line option followed by the \fIname\fR. command-line option followed by the \fIname\fR.
.sp
The syntax \fBdefault\fP is special: it takes no \fIfileregex\fR, The syntax \fBdefault\fP is special: it takes no \fIfileregex\fR,
and applies to files that don't match any syntax's regexes. and applies to files that don't match any syntax's regexes.
The syntax \fBnone\fP is reserved; specifying it on the command line 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. where \fIN\fR is a numeric value from 1 to 24.
Example: F10. Example: F10.
(Often, \fBF13\fR to \fBF24\fR can be typed as \fBF1\fR to \fBF12\fR with Shift.) (Often, \fBF13\fR to \fBF24\fR can be typed as \fBF1\fR to \fBF12\fR with Shift.)
.TP .TP
.BR Ins " or " Del . .BR Ins " or " Del .
.RE .RE
.sp
Rebinding \fB^M\fR (Enter) or \fB^I\fR (Tab) is probably not a good idea. 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 Rebinding \fB^[\fR (Esc) is not possible, because its keycode
is the starter byte of Meta keystrokes and escape sequences. is the starter byte of Meta keystrokes and escape sequences.

View File

@ -647,9 +647,8 @@ void usage(void)
print_opt("-z", "--suspendable", N_("Enable suspension")); print_opt("-z", "--suspendable", N_("Enable suspension"));
} }
/* Display the current version of nano, the date and time it was /* Display the version number of this nano, a copyright notice, some contact
* compiled, contact information for it, and the configuration options * information, and the configuration options this nano was compiled with. */
* it was compiled with. */
void version(void) void version(void)
{ {
#ifdef REVISION #ifdef REVISION

View File

@ -2299,7 +2299,7 @@ void draw_row(int row, const char *converted, linestruct *line, size_t from_col)
#endif #endif
wprintw(edit, " "); wprintw(edit, " ");
} }
#endif #endif /* ENABLE_LINENUMBERS */
/* First simply write the converted line -- afterward we'll add colors /* First simply write the converted line -- afterward we'll add colors
* and the marking highlight on just the pieces that need it. */ * and the marking highlight on just the pieces that need it. */