We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2fe70a commit d0bd09cCopy full SHA for d0bd09c
app/src/processing/app/Base.java
@@ -613,7 +613,11 @@ protected void handleActivated(Editor whichEditor) {
613
activeEditor.rebuildRecentSketchesMenu();
614
if (PreferencesData.getBoolean("editor.external")) {
615
try {
616
+ int previousCaretPosition = activeEditor.getTextArea().getCaretPosition();
617
activeEditor.getSketch().load(true);
618
+ if (previousCaretPosition < activeEditor.getText().length()) {
619
+ activeEditor.getTextArea().setCaretPosition(previousCaretPosition);
620
+ }
621
} catch (IOException e) {
622
// noop
623
}
0 commit comments