| Index: chrome/views/controls/text_field.cc
|
| ===================================================================
|
| --- chrome/views/controls/text_field.cc (revision 13163)
|
| +++ chrome/views/controls/text_field.cc (working copy)
|
| @@ -343,9 +343,9 @@
|
| }
|
|
|
| void TextField::Edit::SelectAll() {
|
| - // Using (0, -1) here is equivalent to calling SetSelAll(); both will select
|
| - // the "phantom newline" that we're trying to avoid.
|
| - SetSel(0, GetTextLength());
|
| + // Select from the end to the front so that the first part of the text is
|
| + // always visible.
|
| + SetSel(GetTextLength(), 0);
|
| }
|
|
|
| void TextField::Edit::ClearSelection() {
|
|
|