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

Unified Diff: dart/site/try/src/selection.dart

Issue 265063002: Better handling of large files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r35799 Created 6 years, 7 months 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
« no previous file with comments | « dart/site/try/src/interaction_manager.dart ('k') | dart/tests/try/cursor_position_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/site/try/src/selection.dart
diff --git a/dart/site/try/src/selection.dart b/dart/site/try/src/selection.dart
index bf48c6d217b9095cf33852c62cce6a2c7707c6c4..7551b596545826eae5143722763b55e276a20b53 100644
--- a/dart/site/try/src/selection.dart
+++ b/dart/site/try/src/selection.dart
@@ -34,7 +34,7 @@ class TrySelection {
Text textNode = new Text(text.substring(start, end));
- if (start <= globalOffset && globalOffset < end) {
+ if (start <= globalOffset && globalOffset <= end) {
anchorNode = textNode;
anchorOffset = globalOffset - start;
}
« no previous file with comments | « dart/site/try/src/interaction_manager.dart ('k') | dart/tests/try/cursor_position_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698