Skip to content

Commit 053a053

Browse files
Merge pull request #1 from joshgiesbrecht/highlight-fix
fixes bug with selecting an error that's in a tab that isn't visible yet.
2 parents 1ee243c + fb18ac5 commit 053a053

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/processing/app/ui/Editor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2736,6 +2736,7 @@ public void highlight(Problem p) {
27362736
}
27372737

27382738
int tabIndex = p.getTabIndex();
2739+
sketch.setCurrentCode(tabIndex); // so we are looking at the right offsets below
27392740
int lineNumber = p.getLineNumber();
27402741
int lineStart = textarea.getLineStartOffset(lineNumber);
27412742
int lineEnd = textarea.getLineStopOffset(lineNumber);

0 commit comments

Comments
 (0)