mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
put caret to the end of the history entry
This commit is contained in:
+3
-1
@@ -281,7 +281,9 @@ public abstract class AbstractConsoleRunnerWithHistory {
|
||||
public boolean process(final AnActionEvent e, final String s) {
|
||||
new WriteCommandAction(languageConsole.getProject(), languageConsole.getFile()) {
|
||||
protected void run(final Result result) throws Throwable {
|
||||
languageConsole.getEditorDocument().setText(s == null ? "" : s);
|
||||
String text = s == null ? "" : s;
|
||||
languageConsole.getEditorDocument().setText(text);
|
||||
languageConsole.getConsoleEditor().getCaretModel().moveToOffset(text.length());
|
||||
}
|
||||
}.execute();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user