diff options
| author | Richard Linden <none@none> | 2010-08-25 16:47:07 -0700 |
|---|---|---|
| committer | Richard Linden <none@none> | 2010-08-25 16:47:07 -0700 |
| commit | 3604f7fe4b35758db3a730e5efa4a06b2326bdfb (patch) | |
| tree | ee8d4d7078c33eb20a773686a1c367e5a2e00cdb /indra/llui/lllineeditor.cpp | |
| parent | c1405887c982f5a7396892017e4ea426ede9af23 (diff) | |
| parent | a0b15c827ee7704c1557c9c882ec236d5d67f948 (diff) | |
merge
Diffstat (limited to 'indra/llui/lllineeditor.cpp')
| -rw-r--r-- | indra/llui/lllineeditor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llui/lllineeditor.cpp b/indra/llui/lllineeditor.cpp index c93ca1af88..e6a07b02cc 100644 --- a/indra/llui/lllineeditor.cpp +++ b/indra/llui/lllineeditor.cpp @@ -1277,7 +1277,7 @@ BOOL LLLineEditor::handleSpecialKey(KEY key, MASK mask) if( mCurrentHistoryLine > mLineHistory.begin() ) { mText.assign( *(--mCurrentHistoryLine) ); - setCursor(llmin((S32)mText.length(), getCursor())); + setCursorToEnd(); } else { @@ -1294,7 +1294,7 @@ BOOL LLLineEditor::handleSpecialKey(KEY key, MASK mask) if( !mLineHistory.empty() && mCurrentHistoryLine < mLineHistory.end() - 1 ) { mText.assign( *(++mCurrentHistoryLine) ); - setCursor(llmin((S32)mText.length(), getCursor())); + setCursorToEnd(); } else { |
