From 8b4d963e5a5f0087daadbe32ba770d8cd27882aa Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 10 Aug 2016 00:08:54 +0800 Subject: [PATCH] Try to fix RSyntaxTextArea issues --- source/net/filebot/ui/rename/FormatDialog.java | 1 + 1 file changed, 1 insertion(+) diff --git a/source/net/filebot/ui/rename/FormatDialog.java b/source/net/filebot/ui/rename/FormatDialog.java index 1e07bbd6..818357b9 100644 --- a/source/net/filebot/ui/rename/FormatDialog.java +++ b/source/net/filebot/ui/rename/FormatDialog.java @@ -313,6 +313,7 @@ public class FormatDialog extends JDialog { public void setFormatCode(String text) { editor.setText(text); + editor.setEditable(true); editor.requestFocusInWindow(); editor.scrollRectToVisible(new Rectangle(0, 0)); // reset scroll editor.setCaretPosition(text.length()); // scroll to end of format