diff -r 9c0506d10226 indra/llui/lltexteditor.cpp --- a/indra/llui/lltexteditor.cpp Mon Apr 18 09:19:05 2011 -0400 +++ b/indra/llui/lltexteditor.cpp Mon Apr 18 21:03:01 2011 +0300 @@ -592,6 +592,10 @@ } } + // Disabling parsing on the fly to avoid updating text segments + // until all indentation commands are executed. + mParseOnTheFly = FALSE; + // Find each start-of-line and indent it do { @@ -617,6 +621,8 @@ } while( cur < right ); + mParseOnTheFly = TRUE; + if( (right < getLength()) && (text[right] == '\n') ) { right++;