[PATCH 2/3] docs: explain the behavior of the new function `cycle`

Benno Schulenberg <[email protected]>
Newsgroups gmane.editors.nano.devel
Message-ID <[email protected]>
---
 doc/nano.texi | 6 +++++-
 doc/nanorc.5  | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/doc/nano.texi b/doc/nano.texi
index 016f87fc..9ae60ed0 100644
--- a/doc/nano.texi
+++ b/doc/nano.texi
@@ -1643,7 +1643,11 @@ while keeping the cursor in the same text position, if possible.
 (This function is bound by default to @kbd{Alt+Down}.)
 
 @item center
-Scrolls the line with the cursor to the middle of the screen.
+Scrolls the line with the cursor to the middle of the viewport.
+
+@item cycle
+Scrolls the line with the cursor first to the middle of the viewport,
+then to the top, then to the bottom.
 
 @item prevword
 Moves the cursor to the beginning of the previous word.
diff --git a/doc/nanorc.5 b/doc/nanorc.5
index 83ddb69a..15c71c70 100644
--- a/doc/nanorc.5
+++ b/doc/nanorc.5
@@ -794,7 +794,11 @@ while keeping the cursor in the same text position, if possible.
 (This function is bound by default to <Alt+Down>.)
 .TP
 .B center
-Scrolls the line with the cursor to the middle of the screen.
+Scrolls the line with the cursor to the middle of the viewport.
+.TP
+.B cycle
+Scrolls the line with the cursor first to the middle of the viewport,
+then to the top, then to the bottom.
 .TP
 .B prevword
 Moves the cursor to the beginning of the previous word.
-- 
2.45.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.