summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterimnearbychat.cpp
diff options
context:
space:
mode:
authordolphin <dolphin@lindenlab.com>2013-10-22 13:40:52 -0700
committerdolphin <dolphin@lindenlab.com>2013-10-22 13:40:52 -0700
commit93b1111507f5e5c812b6a9e8e47bdf7db67931a0 (patch)
tree214b852c8451409d5d355437ddad48199bef976a /indra/newview/llfloaterimnearbychat.cpp
parent03cc47698489929b66fbceb139e4c95d13392b9d (diff)
parent0d0a8d841cab3fbb569a7382b78b0b4fb485eefb (diff)
Merge with viewer-bear
Diffstat (limited to 'indra/newview/llfloaterimnearbychat.cpp')
-rwxr-xr-xindra/newview/llfloaterimnearbychat.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/newview/llfloaterimnearbychat.cpp b/indra/newview/llfloaterimnearbychat.cpp
index 3d77ea4f0b..323e84751f 100755
--- a/indra/newview/llfloaterimnearbychat.cpp
+++ b/indra/newview/llfloaterimnearbychat.cpp
@@ -308,7 +308,8 @@ void LLFloaterIMNearbyChat::onClose(bool app_quitting)
}
// virtual
-void LLFloaterIMNearbyChat::onClickCloseBtn()
+void LLFloaterIMNearbyChat::onClickCloseBtn(bool)
+
{
if (!isTornOff())
{
@@ -493,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))
{