bugGNU nano - Bugs: bug #46532, an undo after a redo misplaces the...

 
 

bug #46532: an undo after a redo misplaces the cursor at the end-of-file

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Wed 25 Nov 2015 05:11:11 PM UTC  
 
Severity: 2 - MinorStatus: 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 26 Nov 2015 08:47:21 AM UTC, comment #1:

The second Undo behaves differently, because the Redo did something wrong -- obviously. :)

Fixed in SVN, r5444.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Wed 25 Nov 2015 05:11:11 PM UTC, original submission:

Bug is present since revision 5267.

To reproduce, run 'src/nano --ignore +8888 NEWS'. Then type:
<Backspace> M-U M-E M-U.

After the first Undo, the cursor is properly placed back at the end-of-file. The Redo puts it again at the end of the last line. But then the second Undo puts it at the start of the last line. Why!? Why behaves the second Undo different from the first?

It works fine when --nonewlines is given.

Ooh... this magic-line stuff... it is maddening!

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:18:52 PM UTCbensOpen/ClosedOpen=>Closed
    Thu 26 Nov 2015 08:47:21 AM UTCbensSeverity3 - Normal=>2 - Minor
      StatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1