bugGNU nano - Bugs: bug #51790, line numbering is inaccurate on...

 
 

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

bug #51790: line numbering is inaccurate on softwrapped rows with straddling tabs

Submitter:  David Lawrence Ramsey <dolorous>
Submitted:  Fri 18 Aug 2017 09:46:12 PM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  dolorous Open/Closed:  Closed

Sat 19 Aug 2017 06:56:59 PM UTC, comment #2: 

Fixed in git, 5fcda555.  Thanks for the patch.

Benno Schulenberg <bens>
Group administrator
Fri 18 Aug 2017 09:48:40 PM UTC, comment #1: 

The attached patch should fix it.  The problem was that edit_draw(), when checking for softwrapped parts of lines, was looking at the starting index instead of the starting column, and the former is thrown off when straddling tabs are in place.

(file #41576)

David Lawrence Ramsey <dolorous>
Group Member
Fri 18 Aug 2017 09:46:12 PM UTC, original submission:  

1. With current git (54a9261), in an 80x24 terminal, run:

src/nano --ignore -T 181 --soft --linenum NEWS

2. Press Meta-P to turn on whitespace display.

Note that all line chunks with straddling tabs get line numbers, even if they're softwrapped, so lines 2, 3, and 4 get numbered three times each instead of once.

David Lawrence Ramsey <dolorous>
Group Member

 

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Posted a comment)
  • -email is unavailable- added by dolorous (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-08-28 bens Open/ClosedOpen Closed
    2017-08-19 bens StatusNone Fixed
        Assigned toNone dolorous
    2017-08-18 dolorous Attached File- Added 0001-display-fix-line-numbers-on-softwrapped-lines-with-s.patch, #41576

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code