commit 7b9567719c0f1169d77481dfd14d910d1543ada7
parent 04d33e79811c03f4effafb475c23ff7442d7bef8
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Thu, 7 Jan 2021 14:14:35 +0100
tweaks: reshuffle an option, to have two related ones grouped together
Options --stateflags and --minibar are slightly related; it looks
better to not have them separated by an unrelated option.
Diffstat:
3 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/doc/nano.1 b/doc/nano.1
@@ -329,6 +329,12 @@ Make Ctrl+Right and Ctrl+Delete stop at word ends instead of beginnings.
.BR \-z ", " \-\-suspendable
Allow the user to suspend the editor (with \fB^Z\fR by default).
.TP
+.BR \-^ ", " \-\-markmatch
+After a search, set the mark at the end of the found match
+(if there is any) so that it gets highlighted. This makes
+the match more visible, but also allows deleting the match
+with a single keystroke.
+.TP
.BR \-% ", " \-\-stateflags
Use the top-right corner of the screen for showing some state flags:
\fBI\fR when auto-indenting, \fBM\fR when the mark is on, \fBL\fR when
@@ -337,12 +343,6 @@ and \fBS\fR when soft-wrapping.
When the buffer is modified, a star (\fB*\fR) is shown after the
filename in the center of the title bar.
.TP
-.BR \-^ ", " \-\-markmatch
-After a search, set the mark at the end of the found match
-(if there is any) so that it gets highlighted. This makes
-the match more visible, but also allows deleting the match
-with a single keystroke.
-.TP
.BR \-_ ", " \-\-minibar
Suppress the title bar and instead show information about
the current buffer at the bottom of the screen, in the space
diff --git a/doc/nano.texi b/doc/nano.texi
@@ -468,6 +468,13 @@ Make Ctrl+Right and Ctrl+Delete stop at word ends instead of beginnings.
Enable the ability to suspend @command{nano} using the system's suspend
keystroke (usually @kbd{^Z}).
+@item -^
+@itemx --markmatch
+After a search, set the mark at the end of the found match
+(if there is any) so that it gets highlighted. This makes
+the match more visible, but also allows deleting the match
+with a single keystroke.
+
@item -%
@itemx --stateflags
Use the top-right corner of the screen for showing some state flags:
@@ -477,13 +484,6 @@ and @code{S} when soft-wrapping.
When the buffer is modified, a star (@code{*}) is shown after the
filename in the center of the title bar.
-@item -^
-@itemx --markmatch
-After a search, set the mark at the end of the found match
-(if there is any) so that it gets highlighted. This makes
-the match more visible, but also allows deleting the match
-with a single keystroke.
-
@item -_
@itemx --minibar
Suppress the title bar and instead show information about
diff --git a/src/nano.c b/src/nano.c
@@ -640,8 +640,8 @@ void usage(void)
if (!ISSET(RESTRICTED))
print_opt("-z", "--suspendable", N_("Enable suspension"));
#ifndef NANO_TINY
- print_opt("-%", "--stateflags", N_("Show some states on the title bar"));
print_opt("-^", "--markmatch", N_("Select the match of a search"));
+ print_opt("-%", "--stateflags", N_("Show some states on the title bar"));
print_opt("-_", "--minibar", N_("Show a feedback bar at the bottom"));
#endif
#ifdef HAVE_LIBMAGIC