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

Unified Diff: sky/sdk/lib/framework/editing2/editable_text.dart

Issue 1179643004: Stop the search search button from crashing stocks2 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | sky/sdk/lib/framework/editing2/input.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/editing2/editable_text.dart
diff --git a/sky/sdk/lib/framework/editing2/editable_text.dart b/sky/sdk/lib/framework/editing2/editable_text.dart
index 59569b04eb412e924b21c5c0692c90c5e659c011..59f2bcba1dc39509a2f70f66b496e20b597b921d 100644
--- a/sky/sdk/lib/framework/editing2/editable_text.dart
+++ b/sky/sdk/lib/framework/editing2/editable_text.dart
@@ -71,15 +71,9 @@ class EditableText extends Component {
// children.add(new TextFragment(value.text));
hack += value.text;
} else {
- String beforeComposing = value.textBefore(value.composing);
- if (!beforeComposing.isEmpty) {
- // children.add(new TextFragment(beforeComposing));
- hack += value.beforeComposing;
- }
-
- String composing = value.textInside(value.composing);
- hack += value.composing;
- hack += value.afterComposing;
+ hack += value.textBefore(value.composing);
+ hack += value.textInside(value.composing);
+ hack += value.textAfter(value.composing);
// if (!composing.isEmpty) {
// children.add(new TextFragment(
// composing,
« no previous file with comments | « no previous file | sky/sdk/lib/framework/editing2/input.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698