summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorMnikolenko ProductEngine <mnikolenko@productengine.com>2013-09-17 12:20:28 +0300
committerMnikolenko ProductEngine <mnikolenko@productengine.com>2013-09-17 12:20:28 +0300
commit8fa463113c19682a64988d2f8c527ef5e5dd156c (patch)
tree67dd68e257ebc8c4ea475265bacebbfb13d8b91f /indra/newview
parentea9af8b873c9c088ff640a556f14f3a5989f9547 (diff)
MAINT-3119 FIXED Select auto-completed part using cursor position
Diffstat (limited to 'indra/newview')
-rwxr-xr-xindra/newview/llfloaterimnearbychat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llfloaterimnearbychat.cpp b/indra/newview/llfloaterimnearbychat.cpp
index 86e64c25e3..323e84751f 100755
--- a/indra/newview/llfloaterimnearbychat.cpp
+++ b/indra/newview/llfloaterimnearbychat.cpp
@@ -494,11 +494,11 @@ void LLFloaterIMNearbyChat::onChatBoxKeystroke()
if (!rest_of_match.empty())
{
mInputEditor->setText(utf8_trigger + rest_of_match); // keep original capitalization for user-entered part
-
// Select to end of line, starting from the character
// after the last one the user typed.
- mInputEditor->selectNext(rest_of_match, false);
+ mInputEditor->selectByCursorPosition(utf8_out_str.size()-rest_of_match.size(),utf8_out_str.size());
}
+
}
else if (matchChatTypeTrigger(utf8_trigger, &utf8_out_str))
{