aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
Diffstat (limited to 'linden')
-rw-r--r--linden/indra/newview/llchatbar.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/linden/indra/newview/llchatbar.cpp b/linden/indra/newview/llchatbar.cpp
index 0a4ca34..a22fd8f 100644
--- a/linden/indra/newview/llchatbar.cpp
+++ b/linden/indra/newview/llchatbar.cpp
@@ -215,6 +215,7 @@ BOOL LLChatBar::handleKeyHere( KEY key, MASK mask )
215 { 215 {
216 if (mInputEditor) 216 if (mInputEditor)
217 { 217 {
218 mInputEditor->deleteSelection(); // Clean up prev completion before attempting a new one
218 std::string txt(mInputEditor->getText()); 219 std::string txt(mInputEditor->getText());
219 220
220 std::vector<LLUUID> avatar_ids; 221 std::vector<LLUUID> avatar_ids;
@@ -223,8 +224,6 @@ BOOL LLChatBar::handleKeyHere( KEY key, MASK mask )
223 224
224 if (!avatar_ids.empty() && !txt.empty()) 225 if (!avatar_ids.empty() && !txt.empty())
225 { 226 {
226 mInputEditor->deleteSelection(); // Clean up prev completion before attempting a new one
227
228 S32 cursorPos = mInputEditor->getCursor(); 227 S32 cursorPos = mInputEditor->getCursor();
229 228
230 if (mCompletionHolder.last_txt != mInputEditor->getText()) 229 if (mCompletionHolder.last_txt != mInputEditor->getText())