diff options
Diffstat (limited to 'indra/newview/llautoreplace.cpp')
-rw-r--r-- | indra/newview/llautoreplace.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/indra/newview/llautoreplace.cpp b/indra/newview/llautoreplace.cpp index 5a3689cee6..641e354605 100644 --- a/indra/newview/llautoreplace.cpp +++ b/indra/newview/llautoreplace.cpp @@ -56,7 +56,7 @@ void LLAutoReplace::autoreplaceCallback(LLUIString& inputText, S32& cursorPos) if (atSpace || haveWord) { - if (atSpace) + if (atSpace && wordEnd > 0) { // find out if this space immediately follows a word wordEnd--; @@ -92,11 +92,6 @@ void LLAutoReplace::autoreplaceCallback(LLUIString& inputText, S32& cursorPos) inputText = wstring_to_utf8str(text); cursorPos+=size_change; } - else - { - // @TODO display replacement as tooltip? - LL_DEBUGS("AutoReplace")<<"tooltip: '"<<lastWord<<"' -> '"<<replacementWord<<"'"<<LL_ENDL; - } } } } |