EXT-5071 - Script Editor slows down FPS when editing scripts with 500+ lines
reviewed by Monroemeow-7.2.2
parent
d6027f5432
commit
69032d8d9d
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue