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

 
 

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

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

Submitter:  Benno Schulenberg <bens>
Submitted:  Mon 27 Mar 2017 03:45:29 PM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

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

Fixed in git, 244a503d.

And closing because unreleased.

Benno Schulenberg <bens>
Group administrator
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>
Group administrator

 

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

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
  • -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
    2017-03-27 bens StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2017-03-27 bens Attached File- Added muddled.txt, #40170

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code