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 - ImportantStatus: 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 File(s):
   
   
Comment:
   

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dolorous (Updated the item)
  • -unavailable- added by bens (Submitted the item)
  • -unavailable- added by bens
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 28 Aug 2017 07:09:41 PM UTCbensOpen/ClosedOpen=>Closed
    Sun 13 Aug 2017 03:37:23 PM UTCbensSummarytabs that cross a chunk boundary can cause mayhem=>when softwrapping, adding whitespace to the topleft corner can cause mayhem
    Sun 13 Aug 2017 11:53:37 AM UTCbensStatusNone=>Fixed
      Assigned toNone=>dolorous
    Sun 13 Aug 2017 09:41:27 AM UTCdolorousAttached File-=>Added 0001-softwrap-properly-update-the-viewport-when-adding-te.patch, #41502
    Sun 13 Aug 2017 08:42:21 AM UTCbensCarbon-Copy-=>Added dolorous

    Back to the top


    Powered by Savane 3.1-cleanup1