diff options
author | Darin Wright | 2004-12-07 02:57:34 +0000 |
---|---|---|
committer | Darin Wright | 2004-12-07 02:57:34 +0000 |
commit | 342c353645c0133415143277f9c2417165de175a (patch) | |
tree | 338a305a6a21b9201cd19bb2ae2d686546f29c43 /org.eclipse.ui.console | |
parent | 5d6c9503556963b220069b61b898da58099f775c (diff) | |
download | eclipse.platform.debug-342c353645c0133415143277f9c2417165de175a.tar.gz eclipse.platform.debug-342c353645c0133415143277f9c2417165de175a.tar.xz eclipse.platform.debug-342c353645c0133415143277f9c2417165de175a.zip |
[backout] Bug 80227 - Fixed width console of 80 chars double spaces 80 char lines
Diffstat (limited to 'org.eclipse.ui.console')
-rw-r--r-- | org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleDocumentAdapter.java | 10 |
1 files changed, 2 insertions, 8 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 70a79b81b..60b1f963d 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 @@ -75,16 +75,10 @@ public class ConsoleDocumentAdapter implements IDocumentAdapter, IDocumentListen regions.add(new Region(offset, 0)); } else { while (length > 0) { - String lineDelimiter = document.getLineDelimiter(i); - int lineDelimiterLength = 0; - if (lineDelimiter != null) { - lineDelimiterLength = lineDelimiter.length(); - length -= lineDelimiterLength; - } int wrappedLength = consoleWidth > 0 ? Math.min(consoleWidth, length) : length; regions.add(new Region(offset, wrappedLength)); - offset += (wrappedLength+lineDelimiterLength); - length -= (wrappedLength+lineDelimiterLength); + offset += wrappedLength; + length -= wrappedLength; } } } |