diff options
author | Oz Linden <oz@lindenlab.com> | 2010-10-14 14:13:30 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2010-10-14 14:13:30 -0400 |
commit | ac3f7c2b6b72aa955c0aa1337b8f25c6f097b429 (patch) | |
tree | d5954adeccf8ef19e66cdc8275521a5ea195e3cb /indra/llui/lllineeditor.cpp | |
parent | 1bd19e8ffe99c4a2d0df8936bf01a63ebc05258f (diff) | |
parent | 7ea2a1f9cc998396f437ec2535ddb1d51cce46b1 (diff) |
Automated merge with file:///Users/oz/Work/viewer-beta
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 2759167d04..a1fc977ce1 100644 --- a/indra/llui/lllineeditor.cpp +++ b/indra/llui/lllineeditor.cpp @@ -1271,7 +1271,7 @@ BOOL LLLineEditor::handleSpecialKey(KEY key, MASK mask) if( mCurrentHistoryLine > mLineHistory.begin() ) { mText.assign( *(--mCurrentHistoryLine) ); - setCursor(llmin((S32)mText.length(), getCursor())); + setCursorToEnd(); } else { @@ -1288,7 +1288,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 { |