bugGNU nano - Bugs: bug #53317, nano sometimes tries to renumber...

 
 

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

bug #53317: nano sometimes tries to renumber nothing when cutting with no magicline

Submitted by:  David Lawrence Ramsey <dolorous>
Submitted on:  Sat 10 Mar 2018 06:11:15 PM UTC  
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  Benno Schulenberg <bens> Open/Closed:  Closed

Fri 30 Mar 2018 09:22:48 AM UTC, comment #4: 

Released in 2.9.5.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 12 Mar 2018 09:49:30 AM UTC, comment #3: 

Thanks for confirming.  Pushed to git, commit f0734dae.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 11 Mar 2018 08:38:00 PM UTC, comment #2: 

No problem.

And after some quick testing on my end, it fixes it for me too.

David Lawrence Ramsey <dolorous>
Project Member
Sun 11 Mar 2018 10:33:43 AM UTC, comment #1: 

Thanks for finding this!

Attached patch fixes it for me.  Let's see if you can break it.  :)

(file #43513)

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sat 10 Mar 2018 06:11:15 PM UTC, original submission:  

With the attached file, and current nano git (1ebb1da3), try the following:

1. Run:

src/nano +1 -I --nonewlines renumber-bug.txt

2. Press Ctrl-K three times, to cut lines 1, 2 and 3.  After pressing it the third time, nano will display "Trying to renumber nothing -- please report a bug" on the statusbar.

There's also another way to reproduce it:

1. Run:

src/nano +2 -I --nonewlines renumber-bug.txt

2. Press Ctrl-K twice, to cut lines 2 and 3.  After pressing it the second time, nano will display "Trying to renumber nothing -- please report a bug" on the statusbar.

David Lawrence Ramsey <dolorous>
Project Member

 

Attached Files
file #43505:  renumber-bug.txt added by dolorous (36B - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Updated the item)
  • -email is unavailable- added by dolorous (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-03-30 bens Open/ClosedOpen => Closed
    2018-03-12 bens StatusIn Progress => Fixed
    2018-03-11 bens Attached File- => Added dont-give-it-a-possible-NULL.patch, #43513
        StatusNone => In Progress
        Assigned toNone => bens
    2018-03-10 dolorous Attached File- => Added renumber-bug.txt, #43505

    Back to the top


    Powered by Savane 3.5