From ebdf44ec4bb94ee8f6db8ca3045a15617b252945 Mon Sep 17 00:00:00 2001 From: elektrahesse Date: Sat, 18 Sep 2010 13:33:24 +0200 Subject: Fixed a regression bug due to a refactor --- linden/indra/newview/llchatbar.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'linden') 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 ) { if (mInputEditor) { + mInputEditor->deleteSelection(); // Clean up prev completion before attempting a new one std::string txt(mInputEditor->getText()); std::vector avatar_ids; @@ -223,8 +224,6 @@ BOOL LLChatBar::handleKeyHere( KEY key, MASK mask ) if (!avatar_ids.empty() && !txt.empty()) { - mInputEditor->deleteSelection(); // Clean up prev completion before attempting a new one - S32 cursorPos = mInputEditor->getCursor(); if (mCompletionHolder.last_txt != mInputEditor->getText()) -- cgit v1.1