diff options
author | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-26 21:52:49 +0000 |
---|---|---|
committer | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-26 21:52:49 +0000 |
commit | 1c4963245b3b8bf0939c21634857a12d1b7135a9 (patch) | |
tree | fe6c6ccb41cf1f5057a7fd38fb42d0c107914c00 /chrome/browser/autocomplete/autocomplete_edit_view_win.cc | |
parent | 61398156d8c68470a29914d77191f16df69b4c84 (diff) | |
download | chromium_src-1c4963245b3b8bf0939c21634857a12d1b7135a9.zip chromium_src-1c4963245b3b8bf0939c21634857a12d1b7135a9.tar.gz chromium_src-1c4963245b3b8bf0939c21634857a12d1b7135a9.tar.bz2 |
Don't inline autocomplete when the selected text is not the previously inline autocompleted text.
BUG=7894
TEST=none
Review URL: http://codereview.chromium.org/3136036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57592 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_edit_view_win.cc')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_edit_view_win.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_win.cc b/chrome/browser/autocomplete/autocomplete_edit_view_win.cc index f7204a5..802e54d 100644 --- a/chrome/browser/autocomplete/autocomplete_edit_view_win.cc +++ b/chrome/browser/autocomplete/autocomplete_edit_view_win.cc @@ -691,7 +691,8 @@ void AutocompleteEditViewWin::UpdatePopup() { // * The user is trying to compose something in an IME CHARRANGE sel; GetSel(sel); - model_->StartAutocomplete((sel.cpMax < GetTextLength()) || ime_composing); + model_->StartAutocomplete(sel.cpMax != sel.cpMin, + (sel.cpMax < GetTextLength()) || ime_composing); } void AutocompleteEditViewWin::ClosePopup() { |