Index: chrome/browser/instant/instant_controller.cc |
diff --git a/chrome/browser/instant/instant_controller.cc b/chrome/browser/instant/instant_controller.cc |
index 4c633d11a2fd5fb36178eaf43451419d3118aceb..385fe87ceafc911ef8256ff62b2ce677269359c5 100644 |
--- a/chrome/browser/instant/instant_controller.cc |
+++ b/chrome/browser/instant/instant_controller.cc |
@@ -568,7 +568,10 @@ void InstantController::SetSuggestions( |
} |
last_suggestion_ = suggestion; |
- if (!last_verbatim_) |
+ // Set the suggested text if the suggestion behavior is |
+ // INSTANT_COMPLETE_NEVER irrespective of verbatim because in this case |
+ // the suggested text does not get committed if the user presses enter. |
+ if (suggestion.behavior == INSTANT_COMPLETE_NEVER || !last_verbatim_) |
delegate_->SetSuggestedText(suggestion.text, suggestion.behavior); |
} |