Re: gotoline jumps from toprow to bottomrow
Ivan Vorontsov <[email protected]> Sun, 5 Oct 2025 14:57:23 +0300
| Newsgroups | gmane.editors.nano.devel |
|---|---|
| Message-ID | <aOJdI0U2vfNEPzlt@DESKTOP-97PAREG> |
On Sun, Oct 05, 2025 at 09:48:21AM +0300, Ivan Vorontsov wrote:
> nano 8.6
>
> Example 1:
> 1. {toprow}{gotoline}--1{enter} # top row
> 2. {toprow}{gotoline}--2{enter} # bottom row
> 3. {toprow}{gotoline}--3{enter} # second row before bottom row
> 4. {toprow}{gotoline}--4{enter} # third row before bottom row
> 5. ... so forth ...
>
> Example 2:
> 1. {bottomrow}{gotoline}++1{enter} # bottom row
> 2. {bottomrow}{gotoline}++2{enter} # bottom row
> 3. {bottomrow}{gotoline}++3{enter} # bottom row
> 4. ... so forth ...
>
> {toprow}{up} and {bottomrow}{down} don't jump to the opposite side, so I
> assume that's the right behaviour. Hence, Example 1 is buggy.
>
Sorry for confusion. In examples, {toprow}/{bottomrow} should be replaced
by {firstline}/{lastline} for correctness (in case your file exceeds one
screen, for e.g, as was in mine).