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

 
 

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

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

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project 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>
Project AdministratorIn charge of this item.
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>
Project Administrator

 

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

Attach Files:
   
   
Comment:
   

 

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
  •  

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

    Only logged-in users can vote.

     

     

     

    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.3