mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Merge pull request #1114 from joshgiesbrecht/main
fixes error highlighting when selecting an error in another tab
This commit is contained in:
@@ -2736,6 +2736,7 @@ public abstract class Editor extends JFrame implements RunnerListener {
|
||||
}
|
||||
|
||||
int tabIndex = p.getTabIndex();
|
||||
sketch.setCurrentCode(tabIndex); // so we are looking at the right offsets below
|
||||
int lineNumber = p.getLineNumber();
|
||||
int lineStart = textarea.getLineStartOffset(lineNumber);
|
||||
int lineEnd = textarea.getLineStopOffset(lineNumber);
|
||||
|
||||
Reference in New Issue
Block a user