Menu

N++ 4.9.2, behaviour for undo action

Anonymous
2008-05-18
2012-11-13
  • Anonymous

    Anonymous - 2008-05-18

    Hi,

    I'm having a strange behaviour when using the undo action (CTRL+Z) in N++ 4.9.2 (it was present in 4.9.1 also); these are the steps to reproduce the issue:

    1. open a new empty document;
    2. write something like abc;
    3. double click on abc to select the whole word and press a; the text should be replaced by a;
    4. press CTRL+Z to perform an undo.

    The text a should be reverted to abc, instead what I get is an empty document; then, if I press CTRL+Z again, I get the abc text. To sum up:

    - Write 'abc' and replace it with 'a';
    - first CTRL+Z: from 'a' to '';
    - second CTRL+Z: from '' to 'abc'.

    Does anyone else have this behaviour? Is there any option to have the old style behaviour? In my opinion the old style behaviour is the correct one, because I perform a single action (replace text) so I shouldn't press 2 times CTRL+Z to undo TWO actions (while I performed a single action).
    Thanks and regards,
    Lore

     
    • chknbone

      chknbone - 2008-06-04

      I'm seeing this behavior as well. In my case I had made a significant amount of changes and with one click of the undo button the file reverted back to the previously saved version thus wiping out all of my changes. Fortunately, one click of redo button and all my changes were there again.

      I found that after closing the file and re-opening it, the "normal" undo behavior was restored.

       
    • Fool4UAnyway

      Fool4UAnyway - 2008-05-20

      I've been noticing this, too. It's very annoying that you can't rely on CTRL+Z to bring you to a previous situation you know to have been better. You either get two steps back, or to the same unwanted situation again, when pressing CTRL+Y.