mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
fixes to the undo, remove thumbs.db in dist
This commit is contained in:
@@ -237,6 +237,7 @@ public class Editor extends JFrame
|
||||
document.addUndoableEditListener(new UndoableEditListener() {
|
||||
public void undoableEditHappened(UndoableEditEvent e) {
|
||||
if (undo != null) {
|
||||
//System.out.println(e.getEdit());
|
||||
undo.addEdit(e.getEdit());
|
||||
undoAction.updateUndoState();
|
||||
redoAction.updateRedoState();
|
||||
@@ -951,6 +952,7 @@ public class Editor extends JFrame
|
||||
public void setText(String currentProgram,
|
||||
int selectionStart, int selectionEnd,
|
||||
UndoManager currentUndo) {
|
||||
//System.out.println("setting text, changing undo");
|
||||
this.undo = null;
|
||||
|
||||
//if (discardUndo) undo.discardAllEdits();
|
||||
|
||||
Reference in New Issue
Block a user