Skip to content

Commit 08e5551

Browse files
Remove UndoManager stuff from AStyle
The only change that happens is a single `setText()` call, which already results in a single undo action.
1 parent 92fcb97 commit 08e5551

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

app/src/cc/arduino/packages/formatter/AStyle.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,8 @@ public void run() {
9191
int line = getLineOfOffset(textArea);
9292
int lineOffset = getLineOffset(textArea, line);
9393

94-
textArea.getUndoManager().beginInternalAtomicEdit();
9594
editor.removeAllLineHighlights();
9695
editor.getCurrentTab().setText(formattedText);
97-
textArea.getUndoManager().endInternalAtomicEdit();
9896

9997
if (line != -1 && lineOffset != -1) {
10098
try {

0 commit comments

Comments
 (0)