Index: chrome/browser/chromeos/input_method/input_method_engine.cc |
diff --git a/chrome/browser/chromeos/input_method/input_method_engine.cc b/chrome/browser/chromeos/input_method/input_method_engine.cc |
index 331d3bc8f6309ca330d34ea15a737c2876a2405b..5572736318ba8d52a0655bfdddf319d57211bd92 100644 |
--- a/chrome/browser/chromeos/input_method/input_method_engine.cc |
+++ b/chrome/browser/chromeos/input_method/input_method_engine.cc |
@@ -498,6 +498,9 @@ |
return false; |
} |
+ if (offset < 0 && static_cast<size_t>(-1 * offset) != size_t(number_of_chars)) |
+ return false; // Currently we can only support preceding text. |
+ |
// TODO(nona): Return false if there is ongoing composition. |
IMEInputContextHandlerInterface* input_context = |