mirror of
https://github.com/processing/processing4.git
synced 2026-05-03 09:26:25 +02:00
Fixed EDT placement.
This commit is contained in:
@@ -1030,11 +1030,9 @@ public abstract class Editor extends JFrame implements RunnerListener {
|
||||
|
||||
static public int getProblemEditorLineStop(Problem problem, int lineStart, int lineStop) {
|
||||
int stopOffset = problem.getStopOffset();
|
||||
System.out.println("> " + lineStart + " " + lineStop + " " + stopOffset);
|
||||
if (stopOffset == -1) {
|
||||
stopOffset = lineStop - lineStart;
|
||||
}
|
||||
System.out.println("< " + lineStart + " " + lineStop + " " + stopOffset);
|
||||
return stopOffset;
|
||||
}
|
||||
|
||||
|
||||
@@ -112,8 +112,7 @@ class PdeAdapter {
|
||||
|
||||
static Offset toLineEndCol(String s, int offset) {
|
||||
Offset before = toLineCol(s, offset);
|
||||
int remaining = s.substring(offset).indexOf('\n');
|
||||
return new Offset(before.line, before.col + remaining);
|
||||
return new Offset(before.line, Integer.MAX_VALUE);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user