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:
parent
31284feb9b
commit
c08fd76cad
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user