Skip to content

Commit eb03bca

Browse files
committed
Fixed EDT placement.
1 parent f2646c4 commit eb03bca

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,11 +1030,9 @@ static public void showChanges() {
10301030

10311031
static public int getProblemEditorLineStop(Problem problem, int lineStart, int lineStop) {
10321032
int stopOffset = problem.getStopOffset();
1033-
System.out.println("> " + lineStart + " " + lineStop + " " + stopOffset);
10341033
if (stopOffset == -1) {
10351034
stopOffset = lineStop - lineStart;
10361035
}
1037-
System.out.println("< " + lineStart + " " + lineStop + " " + stopOffset);
10381036
return stopOffset;
10391037
}
10401038

java/src/processing/mode/java/lsp/PdeAdapter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ static Offset toLineCol(String s, int offset) {
112112

113113
static Offset toLineEndCol(String s, int offset) {
114114
Offset before = toLineCol(s, offset);
115-
int remaining = s.substring(offset).indexOf('\n');
116-
return new Offset(before.line, before.col + remaining);
115+
return new Offset(before.line, Integer.MAX_VALUE);
117116
}
118117

119118

0 commit comments

Comments
 (0)