Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/functions/BufferedDocumentScanner.java

Issue 8965001: Bug fix for highlighting that drifts (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/functions/BufferedDocumentScanner.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/functions/BufferedDocumentScanner.java (revision 2468)
+++ editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/functions/BufferedDocumentScanner.java (working copy)
@@ -99,8 +99,9 @@
if (end == fDocument.getLength() || end == fRangeOffset + fRangeLength) {
return EOF;
} else {
- updateBuffer(fBufferOffset + fBufferLength);
+ updateBuffer(fBufferOffset + fOffset);
fOffset = 0;
+ targetOffset = distance;
}
}
if (targetOffset < fBufferLength) {
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/internal/text/functions/BufferedDocumentScannerTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698