mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 09:50:51 +00:00
Fixed Script editors - tab size now matches indent size
This commit is contained in:
@@ -376,7 +376,7 @@ public class ASMSourceEditorPane extends DebuggableEditorPane implements CaretLi
|
||||
}
|
||||
|
||||
super.setText(highlightedText.text);
|
||||
setCaretPosition(0);
|
||||
setCaretPosition(0);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -36,6 +36,7 @@ import javax.swing.text.BadLocationException;
|
||||
import javax.swing.text.Document;
|
||||
import javax.swing.text.EditorKit;
|
||||
import javax.swing.text.JTextComponent;
|
||||
import javax.swing.text.PlainDocument;
|
||||
import jsyntaxpane.SyntaxDocument;
|
||||
|
||||
/**
|
||||
@@ -162,6 +163,8 @@ public class UndoFixedEditorPane extends JEditorPane {
|
||||
((SyntaxDocument) doc).setIgnoreUpdate(false);
|
||||
}
|
||||
|
||||
doc.putProperty(PlainDocument.tabSizeAttribute, Configuration.indentSize.get());
|
||||
|
||||
setDocument(doc);
|
||||
} catch (BadLocationException | IOException ex) {
|
||||
Logger.getLogger(UndoFixedEditorPane.class.getName()).log(Level.SEVERE, null, ex);
|
||||
|
||||
Reference in New Issue
Block a user