summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authormaxim@mnikolenko <maxim@mnikolenko>2014-01-20 12:48:58 +0200
committermaxim@mnikolenko <maxim@mnikolenko>2014-01-20 12:48:58 +0200
commit74c7460846f08d0a2c45589c670e55988a951965 (patch)
tree92491e7a225295171dddf729e29a210793f76f92 /indra
parent9489dbe2c16720c26f8854b50d30103ec12d190d (diff)
MAINT-3618 FIXED Don't copy spaces after cursor to the next line.
Diffstat (limited to 'indra')
-rwxr-xr-xindra/llui/lltexteditor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llui/lltexteditor.cpp b/indra/llui/lltexteditor.cpp
index 81d9fd1ec9..7896fcef95 100755
--- a/indra/llui/lltexteditor.cpp
+++ b/indra/llui/lltexteditor.cpp
@@ -2338,7 +2338,8 @@ void LLTextEditor::autoIndent()
S32 i;
LLWString text = getWText();
- while( ' ' == text[line_start] )
+ S32 offset = getLineOffsetFromDocIndex(mCursorPos);
+ while(( ' ' == text[line_start] ) && (space_count < offset))
{
space_count++;
line_start++;