1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00

Remove UndoManager stuff from AStyle

The only change that happens is a single `setText()` call, which already
results in a single undo action.
This commit is contained in:
Matthijs Kooijman 2015-12-09 12:17:17 +01:00 committed by Martino Facchin
parent 31284feb9b
commit c08fd76cad

View File

@ -91,10 +91,8 @@ public class AStyle implements Tool {
int line = getLineOfOffset(textArea);
int lineOffset = getLineOffset(textArea, line);
textArea.getUndoManager().beginInternalAtomicEdit();
editor.removeAllLineHighlights();
editor.getCurrentTab().setText(formattedText);
textArea.getUndoManager().endInternalAtomicEdit();
if (line != -1 && lineOffset != -1) {
try {