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

Unified Diff: chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm

Issue 11308330: Omnibox: When backspacing out of keyword mode, don't highlight anything. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-upload Created 8 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
index 0fbb6b09986d373c76c1d7415e8de0cbbd7f404a..9cf11b3f41490ce298b3dacf4a8e176c57306391 100644
--- a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
+++ b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
@@ -269,7 +269,7 @@ void OmniboxViewMac::SetWindowTextAndCaretPos(const string16& text,
bool update_popup,
bool notify_text_changed) {
DCHECK_LE(caret_pos, text.size());
- SetTextAndSelectedRange(text, NSMakeRange(caret_pos, caret_pos));
+ SetTextAndSelectedRange(text, NSMakeRange(caret_pos, 0));
if (update_popup)
UpdatePopup();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698