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

 
 

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

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

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

Fixed in git, d66ea08.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 31 Oct 2016 10:18:35 AM UTCbensOpen/ClosedOpen=>Closed
    Tue 18 Oct 2016 01:13:52 PM UTCbensStatusNone=>Fixed
      Assigned toNone=>bens

    Back to the top


    Powered by Savane 3.1-cleanup1