bugGNU nano - Bugs: bug #49374, with softwrap, a <Right> at...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #49374: with softwrap, a <Right> at end-of-line sometimes scrolls too much

Submitter:  Benno Schulenberg <bens>
Submitted:  Mon 17 Oct 2016 07:49:51 PM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Tue 18 Oct 2016 01:13:52 PM UTC, comment #3: 

Fixed in git, d66ea08.

Benno Schulenberg <bens>
Group administrator
Tue 18 Oct 2016 09:15:24 AM UTC, comment #2: 

Pfff...  Testing this again now, it is 2.6.2 that still scrolls correctly with a <Right> and end-of-line, and 2.6.3 does it wrong.

Bisecting says that c9e9964 is the offending commit.

Benno Schulenberg <bens>
Group administrator
Mon 17 Oct 2016 08:18:52 PM UTC, comment #1: 

If, in the described recipe, you do a <Down> instead of a <Right>, the screen scrolls just the needed one line.  But that is so only since version 2.6.0 -- in 2.5.3 and before, also a <Down> at that point scrolled two lines.  (But there were loads of changes in 2.6.0...  Hard to find what improved things there.)

It is almost absurd that a <Down> works fine when a <Right> doesn't -- because the latter at the end-of-line essentially sets x to zero and then does a <Down>.

Benno Schulenberg <bens>
Group administrator
Mon 17 Oct 2016 07:49:51 PM UTC, original submission:  

To reproduce, run 'stty cols 44 && stty rows 23 && src/nano --smooth --soft --nowrap +8 doc/faq.html', and type five times <Down> followed by <End>.  Then type <Right>.  See how the screen scrolls two lines, where one line would have been enough (and is possible in this case: type M-- and it will scroll one line back).

Expected behavior: a <Right> should not scroll more than needed.

Benno Schulenberg <bens>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-10-31 bens Open/ClosedOpen Closed
    2016-10-18 bens StatusNone Fixed
        Assigned toNone bens

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code