bugGNU nano - Bugs: bug #50653, in current git, the cursor can get...

 
 

bug #50653: in current git, the cursor can get slightly stuck on a far column

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Mon 27 Mar 2017 03:45:29 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.

 

Mon 27 Mar 2017 03:53:49 PM UTC, comment #1:

Fixed in git, 244a503d.

And closing because unreleased.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 27 Mar 2017 03:45:29 PM UTC, original submission:

When using softwrap and specifying at startup a large column number for a line that has only a few columns, the cursor does not respond to the first strikes of <Up>.

To reproduce, get the attached file and run:

stty cols 80 && stty rows 24 && src/nano +5,165 --ignore --softwrap muddled.txt

Then type three times <Up>. Only at the third strike does the cursor move to the "g" of "enough" on the preceding line. This is because nano thinks the cursor is in column 165; the first strike moves it to column 85, the second to column 5, and only the third strike moves it to the preceding line.

To determine the leftedge, nano should not simply take the leftedge that would correspond to placewewant, but the leftedge that corresponds to the full line span, if the latter is smaller.

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:
   

Attached Files
file #40170:  muddled.txt added by bens (1KiB - text/plain)

 

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 27 Mar 2017 03:53:49 PM UTCbensStatusIn Progress=>Fixed
      Open/ClosedOpen=>Closed
    Mon 27 Mar 2017 03:45:29 PM UTCbensAttached File-=>Added muddled.txt, #40170

    Back to the top


    Powered by Savane 3.1-cleanup1