Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Barnes2006-03-08 18:51:42 -0500
committerKevin Barnes2006-03-08 18:51:42 -0500
commit79e3851dfdff877bfe90f6be2373eb68ade0617a (patch)
tree1a44d9bafb5a6e1763b6a5a796b22695654df7d4 /org.eclipse.ui.console
parent56e3da92e39d67779df0366ad429ddfef473b9e6 (diff)
downloadeclipse.platform.debug-79e3851dfdff877bfe90f6be2373eb68ade0617a.tar.gz
eclipse.platform.debug-79e3851dfdff877bfe90f6be2373eb68ade0617a.tar.xz
eclipse.platform.debug-79e3851dfdff877bfe90f6be2373eb68ade0617a.zip
Bug 130431 - A lot of characters in a line of output crashes Eclipse
Diffstat (limited to 'org.eclipse.ui.console')
-rw-r--r--org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleDocumentAdapter.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleDocumentAdapter.java b/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleDocumentAdapter.java
index 104f29160..e54fba468 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleDocumentAdapter.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleDocumentAdapter.java
@@ -45,7 +45,7 @@ public class ConsoleDocumentAdapter implements IDocumentAdapter, IDocumentListen
int[] lengths = new int[5000];
private int regionCount = 0;
- private Pattern pattern = Pattern.compile("^", Pattern.MULTILINE); //$NON-NLS-1$
+ private Pattern pattern = Pattern.compile("^.*$", Pattern.MULTILINE); //$NON-NLS-1$
public ConsoleDocumentAdapter(int width) {
@@ -350,9 +350,6 @@ public class ConsoleDocumentAdapter implements IDocumentAdapter, IDocumentListen
count += (line.length() / consoleWidth);
}
}
-
-
-
return count;
}

Back to the top