bugGNU nano - Bugs: bug #46323, after a redo, an undo does not do...

 
 

bug #46323: after a redo, an undo does not do enough

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Thu 29 Oct 2015 12:37:30 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.

 

Thu 29 Oct 2015 08:44:10 PM UTC, comment #1:

(It even segfaults when you type one a instead of two in the given recipe.)

Fixed in SVN, r5379. Adding an undo item should only be skipped when ADDs and CUTs are really contiguous -- they may not be interrupted by an undo plus redo pair. So the test should not check that the current action is the same as the action in the current undo item, but that it is the same as the actual last_action.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Thu 29 Oct 2015 12:37:30 PM UTC, original submission:

To reproduce, run src/nano, then type:

xx M-U M-E aa M-U

After the last M-U, only one "a" disappears instead of both.

It works fine in 2.3.2 and before, but fails in 2.3.3 and after.

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:17:13 PM UTCbensOpen/ClosedOpen=>Closed
    Thu 29 Oct 2015 08:44:10 PM UTCbensStatusNone=>Fixed
      Assigned toNone=>bens

    Back to the top


    Powered by Savane 3.1-cleanup1