bugGNU nano - Bugs: bug #45523, undoing an add or delete does not...

 
 

bug #45523: undoing an add or delete does not update the file's total size

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Fri 10 Jul 2015 07:13:20 PM UTC  
 
Severity: 4 - ImportantStatus: Fixed
Assigned to: Benno Schulenberg <bens>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 30 Nov 2015 04:22:38 PM UTC, comment #1:

Fixed in SVN, r5456.

(Turned out to be easier than I thought.)

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Fri 10 Jul 2015 07:13:20 PM UTC, original submission:

When undoing a textual add (doing M-U after typing some letters) or undoing a textual delete (doing M-U after typing Backspace or Delete), the total file size as shown in the status bar when doing ^C is not adjusted for the removed or re-added characters.

To reproduce, run plain 'nano --ignorercfiles', and type:

aaa ^C (we're at 3 out of 4 chars, an automatic newline included)

M-U ^C (we're now at 0 out of 4 chars, but there's really only 1 left!)

wwwwww ^C (we're at 6 out of 10)

[six times <Backspace>] ^C (again at 0 out of 4)

M-U ^C (now we're at 6 out of 4 -- hmmm)

[six times <Backspace>] ^C (now we're at 0 out of 4294967294 chars!)

M-U ^C (and now at 6 out of 4294967294 chars)

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

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 07 Dec 2015 03:13:59 PM UTCbensOpen/ClosedOpen=>Closed
    Mon 30 Nov 2015 04:22:38 PM UTCbensStatusNone=>Fixed
      Assigned toNone=>bens

    Back to the top


    Powered by Savane 3.1-cleanup1