diff options
author | McCabe Maxsted | 2010-09-14 20:51:42 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-09-14 20:51:42 -0700 |
commit | aeab049f525587a61f00f9d148c9b10de7167152 (patch) | |
tree | 1b753b554fddb20cc5d699c8a954996884f7f9ef /linden/indra | |
parent | Merge remote branch 'thickbrick/weekly' into weekly (diff) | |
parent | Small bugfix, no dropdown yet (diff) | |
download | meta-impy-aeab049f525587a61f00f9d148c9b10de7167152.zip meta-impy-aeab049f525587a61f00f9d148c9b10de7167152.tar.gz meta-impy-aeab049f525587a61f00f9d148c9b10de7167152.tar.bz2 meta-impy-aeab049f525587a61f00f9d148c9b10de7167152.tar.xz |
Merge remote branch 'elektra/weekly' into weekly
Diffstat (limited to 'linden/indra')
-rw-r--r-- | linden/indra/newview/llchatbar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/newview/llchatbar.cpp b/linden/indra/newview/llchatbar.cpp index 739c644..92340ec 100644 --- a/linden/indra/newview/llchatbar.cpp +++ b/linden/indra/newview/llchatbar.cpp | |||
@@ -266,12 +266,12 @@ BOOL LLChatBar::handleKeyHere( KEY key, MASK mask ) | |||
266 | 266 | ||
267 | std::string test_name(agent_name); | 267 | std::string test_name(agent_name); |
268 | std::transform(test_name.begin(), test_name.end(), test_name.begin(), tolower); | 268 | std::transform(test_name.begin(), test_name.end(), test_name.begin(), tolower); |
269 | std::transform(to_match.begin(), to_match.end(), to_match.begin(), tolower); | ||
269 | 270 | ||
270 | if (test_name.find(to_match) == 0) | 271 | if (test_name.find(to_match) == 0) |
271 | { | 272 | { |
272 | std::string rest_of_match = agent_name.substr(to_match.length(), agent_name.length()); | ||
273 | mInputEditor->setText(left_part.substr(0, left_part.length() - to_match.length()) + agent_name + right_part); | 273 | mInputEditor->setText(left_part.substr(0, left_part.length() - to_match.length()) + agent_name + right_part); |
274 | mInputEditor->setSelection(cursorPos, cursorPos + rest_of_match.length()); | 274 | mInputEditor->setSelection(cursorPos, cursorPos + (agent_name.length() - to_match.length())); |
275 | return TRUE; | 275 | return TRUE; |
276 | } | 276 | } |
277 | } | 277 | } |