Bugs item #1760848, was opened at 2007-07-26 10:37
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=102439&aid=1760848&group_id=2439

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: SciTE
Group: Bug
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Danilo Turina (daniloturina)
Assigned to: Nobody/Anonymous (nobody)
Summary: Undo occasionally groups together different modifications

Initial Comment:
Occasionally it happens that multiple modifications in different positions 
(possibly in different rows that are not adjacent) are treated as a single 
action by undo/redo.

It happens not very frequently (2/3 times a day while I work) but when it 
happens, I can always reproduce it in the same buffer.

For example, it just happened to me that, having this a piece of code similar 
to this:

1  if (flag) {
2    print("ok");
3  } else {
4    print("nok");
5  }

If I remove "flag" from line 1 and add "Hello" to line 5,  so having this:

1  if () {
2    print("ok");
3  } else {
4    print("nok");
5  }"Hello"

If I request an undo (through Ctrl-Z) I'm always back to the original text 
(i.e. both the deletion and the typing are treated as an unique operation).

When this starts to happen in a buffer, it always happens, that is: if you 
delete some text and immediately write some other text, the two operations are 
treated as one by undo/redo.

Other buffers are not affected.

If I revert the file (i.e. reload it from disk) the problem from that moment on 
does not happen anymore.

Notice that in my config file I have: 

reload.preserves.undo=1



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=102439&aid=1760848&group_id=2439
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to