aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
authorelektrahesse2010-09-18 13:33:24 +0200
committerelektrahesse2010-09-18 13:33:24 +0200
commitebdf44ec4bb94ee8f6db8ca3045a15617b252945 (patch)
treeae0675a6a90bc28c04b91f0eebc112fab6cca455 /linden
parentChanged version to Experimental 2010.09.18 (diff)
downloadmeta-impy-ebdf44ec4bb94ee8f6db8ca3045a15617b252945.zip
meta-impy-ebdf44ec4bb94ee8f6db8ca3045a15617b252945.tar.gz
meta-impy-ebdf44ec4bb94ee8f6db8ca3045a15617b252945.tar.bz2
meta-impy-ebdf44ec4bb94ee8f6db8ca3045a15617b252945.tar.xz
Fixed a regression bug due to a refactor
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())