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

 
 

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

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

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

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>
Group administrator
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>
Group administrator

 

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

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-12-07 bens Open/ClosedOpen Closed
    2015-11-30 bens StatusNone Fixed
        Assigned toNone bens

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code