commit 2525291ef0c7227e081f0c23ce2bac347493f3ae parent 124b41acdb61a634832ba78a70849b20d372838b Author: Benno Schulenberg <bensberg@telfort.nl> Date: Tue, 1 Jul 2025 16:01:51 +0200 docs: document the ++/-- prefix feature for the `gotoline` function Diffstat:
| M | doc/nano.texi | | | 6 | ++++-- |
| M | doc/nanorc.5 | | | 6 | ++++-- |
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/doc/nano.texi b/doc/nano.texi @@ -1696,8 +1696,10 @@ Goes to the first line of the file. Goes to the last line of the file. @item gotoline -Goes to a specific line (and column if specified). Negative numbers count -from the end of the file (and end of the line). +Goes to a specific line (and column if given). +A negative number counts from the end of the buffer (and end of the line). +Putting @code{++} or @code{--} before the first number will jump the given +number of lines forward or backward. @item findbracket Moves the cursor to the bracket (or brace or parenthesis, etc.) that matches diff --git a/doc/nanorc.5 b/doc/nanorc.5 @@ -839,8 +839,10 @@ Goes to the first line of the file. Goes to the last line of the file. .TP .B gotoline -Goes to a specific line (and column if specified). Negative numbers count -from the end of the file (and end of the line). +Goes to a specific line (and column if given). +A negative number counts from the end of the buffer (and end of the line). +Putting \fB++\fR or \fB\-\-\fR before the first number will jump the given +number of lines forward or backward. .TP .B findbracket Moves the cursor to the bracket (or brace or parenthesis, etc.\&) that matches