EXT-5071 - Script Editor slows down FPS when editing scripts with 500+ lines

reviewed by Monroe
meow-7.2.2
richard 2010-02-16 19:14:55 -08:00
parent d6027f5432
commit 69032d8d9d
1 changed files with 2 additions and 2 deletions

View File

@ -2524,9 +2524,9 @@ void LLTextEditor::loadKeywords(const std::string& filename,
void LLTextEditor::updateSegments()
{
LLFastTimer ft(FTM_SYNTAX_HIGHLIGHTING);
if (mKeywords.isLoaded())
if (mReflowIndex < S32_MAX && mKeywords.isLoaded())
{
LLFastTimer ft(FTM_SYNTAX_HIGHLIGHTING);
// HACK: No non-ascii keywords for now
segment_vec_t segment_list;
mKeywords.findSegments(&segment_list, getWText(), mDefaultColor.get(), *this);