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

 
 

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

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

Submitter:  Benno Schulenberg <bens>
Submitted:  Wed 25 Nov 2015 05:11:11 PM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

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>
Group administrator
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>
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-26 bens Severity3 - Normal 2 - Minor
        StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code