commit a14c8943258810b5fca09b9dbdd8a7c40d7bdd07
parent bc6b9bf9552f5b0f43847a5cf2ff2085d79a13a2
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 17 Aug 2020 14:20:03 +0200
docs: add a cross-reference from 'findbracket' to 'set matchbrackets'
Diffstat:
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/doc/nano.texi b/doc/nano.texi
@@ -861,8 +861,9 @@ Display line numbers to the left of the text area.
@item set locking
Enable vim-style lock-files for when editing files.
+@anchor{@code{set matchbrackets}}
@item set matchbrackets "@var{characters}"
-Set the opening and closing brackets that can be found by bracket
+Specify the opening and closing brackets that can be found by bracket
searches. This may not include blank characters. The opening set must
come before the closing set, and the two sets must be in the same order.
The default value is @t{"(<[@{)>]@}"}.
@@ -1423,8 +1424,8 @@ Goes to a specific line (and column if specified). Negative numbers count
from the end of the file (and end of the line).
@item findbracket
-Moves the cursor to the bracket (brace, parenthesis, etc.) that matches
-(pairs) with the one under the cursor.
+Moves the cursor to the bracket (or brace or parenthesis, etc.) that matches
+(pairs) with the one under the cursor. @xref{@code{set matchbrackets}}.
@item anchor
Places an anchor at the current line, or removes it when already present.
diff --git a/doc/nanorc.5 b/doc/nanorc.5
@@ -172,7 +172,7 @@ Display line numbers to the left of the text area.
Enable vim-style lock-files for when editing files.
.TP
.BI "set matchbrackets """ characters """
-Set the opening and closing brackets that can be found by bracket
+Specify the opening and closing brackets that can be found by bracket
searches. This may not include blank characters. The opening set must
come before the closing set, and the two sets must be in the same order.
The default value is "\fB(<[{)>]}\fP".
@@ -723,8 +723,8 @@ Goes to a specific line (and column if specified). Negative numbers count
from the end of the file (and end of the line).
.TP
.B findbracket
-Moves the cursor to the bracket (brace, parenthesis, etc.) that matches
-(pairs) with the one under the cursor.
+Moves the cursor to the bracket (or brace or parenthesis, etc.) that matches
+(pairs) with the one under the cursor. See \fBset matchbrackets\fR.
.TP
.B anchor
Places an anchor at the current line, or removes it when already present.