bugGNU nano - Bugs: bug #56991, widening the terminal and then...

 
 

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

bug #56991: widening the terminal and then closing a file can warn about "Badness"

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Fri 04 Oct 2019 08:21:58 AM UTC  
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  Benno Schulenberg <bens> Open/Closed:  Closed

Wed 27 Nov 2019 10:50:58 AM UTC, comment #3: 

Fixed in git, commit 68c3aaf2.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Wed 27 Nov 2019 10:48:13 AM UTC, comment #2: 

On a terminal of 35 rows and 72 columns, run:

  src/nano --ignore --softwrap --quick --atblanks +1 NEWS +88,44 doc/faq.html

Then resize the terminal to 90 columns, type ^X, see the warnings, then type <Alt+Down> three times, then <Alt+Up> once.  See how the row with "nano also reached..." is duplicated.  When you then with <Up> move the cursor to the second of those rows, and press <Ctrl+Left> a few times, you'll see that the cursor stops in the middle of words: nano thinks that a different text is there than what is actually displayed.  When you then type ^L, the duplicated row disappears.

The problem is that when we close the first buffer and switch to the second, 'firstcolumn' hasn't been updated to fit the width of the screen, so nano starts diplaying chunks from a wrong starting point.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sat 05 Oct 2019 10:49:10 AM UTC, comment #1: 

For the recipe to produce the said warnings, the terminal needs to have at least 34 rows.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Fri 04 Oct 2019 08:21:58 AM UTC, original submission:  

To reproduce, make your terminal 72 columns wide and then run:

  src/nano --ignore --softwrap  +1 NEWS +88,44 doc/faq.html

Then resize the window horizontally to 90 columns.  Then type ^X.

Result: [ Badness: tried to display a chunk on row 31/32/33... ]

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.

 

No files currently attached

 

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)
  •  

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

    Date Changed by Updated Field Previous Value => Replaced by
    2019-11-30 bens Open/ClosedOpen => Closed
    2019-11-27 bens Severity3 - Normal => 2 - Minor
    2019-11-27 bens StatusIn Progress => Fixed
    2019-11-26 bens StatusNone => In Progress
        Assigned toNone => bens

    Back to the top


    Powered by Savane 3.5