diff options
| author | maxim@mnikolenko <maxim@mnikolenko> | 2014-01-20 12:48:58 +0200 | 
|---|---|---|
| committer | maxim@mnikolenko <maxim@mnikolenko> | 2014-01-20 12:48:58 +0200 | 
| commit | 74c7460846f08d0a2c45589c670e55988a951965 (patch) | |
| tree | 92491e7a225295171dddf729e29a210793f76f92 /indra/llui/lltexteditor.cpp | |
| parent | 9489dbe2c16720c26f8854b50d30103ec12d190d (diff) | |
MAINT-3618 FIXED Don't copy spaces after cursor to the next line.
Diffstat (limited to 'indra/llui/lltexteditor.cpp')
| -rwxr-xr-x | indra/llui/lltexteditor.cpp | 3 | 
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++; | 
