Skip to content

Commit 6eef453

Browse files
committed
Fixed EditorConsole new-line regression.
Now EditorConsole starts a newline also when a CR character is read from command output.
1 parent 15f3d1f commit 6eef453

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/processing/app/EditorConsole.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public synchronized void appendString(String text, AttributeSet a) {
206206
char c = chars[stop];
207207
stop++;
208208
currentLineLength++;
209-
if (c == '\n' || currentLineLength > maxLineLength) {
209+
if (c == '\n' || c == '\r' || currentLineLength > maxLineLength) {
210210
elements.add(new ElementSpec(a, ElementSpec.ContentType, chars, start,
211211
stop - start));
212212
elements.add(new ElementSpec(a, ElementSpec.EndTagType));

0 commit comments

Comments
 (0)