bugGNU nano - Bugs: bug #51743, when softwrapping, adding...

 
 

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

bug #51743: when softwrapping, adding whitespace to the topleft corner can cause mayhem

Submitter:  Benno Schulenberg <bens>
Submitted:  Sun 13 Aug 2017 08:42:21 AM UTC
   
 
Severity:  4 - Important Status:  Fixed
Assigned to:  dolorous Open/Closed:  Closed

Sun 13 Aug 2017 11:53:37 AM UTC, comment #2: 

The patch did not catch the case of typing "xx <Space>", for example.  I've amended it and pushed it, 8e779b6e.  Thanks.

(The test for SOFTWRAP being set is not needed as it is implicit in firstcolumn not being zero.)

Benno Schulenberg <bens>
Group administrator
Sun 13 Aug 2017 09:41:27 AM UTC, comment #1: 

This patch against git 3ab943c should fix it; the text was being rewrapped by the tab, and firstcolumn was going out of alignment.

(file #41502)

David Lawrence Ramsey <dolorous>
Group Member
Sun 13 Aug 2017 08:42:21 AM UTC, original submission:  

To reproduce, run on an 80-column terminal:

  src/nano --ignore --nowrap --softwrap --atblanks doc/faq.html

Then type Alt+= seven times, to scroll the text seven chunks up, which brings the cursor to line 7, column 71, on the "a" of "alink", but still sitting on the first row.  Then type <Tab>.

Nano appears to insert two spaces and then jumps to the next row.  Now type <Up> twice.  The screen scrolls to bring the top of the document back into view, but notice how a chunk seems to be missing.  Type ^L.  The missing chunk with "<body..." is restored.

Benno Schulenberg <bens>
Group administrator

 

(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 dolorous (Updated the item)
  • -email is unavailable- added by bens (Submitted the item)
  • -email is unavailable- added by bens
  •  

    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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-08-28 bens Open/ClosedOpen Closed
    2017-08-13 bens Summarytabs that cross a chunk boundary can cause mayhem when softwrapping, adding whitespace to the topleft corner can cause mayhem
    2017-08-13 bens StatusNone Fixed
        Assigned toNone dolorous
    2017-08-13 dolorous Attached File- Added 0001-softwrap-properly-update-the-viewport-when-adding-te.patch, #41502
    2017-08-13 bens Carbon-Copy- Added dolorous

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code