ide: Fixed minor issue with code rescan

git-svn-id: svn://ultimatepp.org/upp/trunk@7718 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-09-22 14:52:09 +00:00
parent 0cba2e7a5f
commit cfd6d665ee

View file

@ -86,11 +86,12 @@ void CodeEditor::CheckSyntaxRefresh(int pos, const WString& text)
void CodeEditor::PostInsert(int pos, const WString& text) {
if(check_edited)
bar.SetEdited(GetLine(pos));
if(IsFullRefresh()) return;
if(text.GetCount() > 200 || text.Find('\n') >= 0)
Refresh();
else
CheckSyntaxRefresh(pos, text);
if(!IsFullRefresh()) {
if(text.GetCount() > 200 || text.Find('\n') >= 0)
Refresh();
else
CheckSyntaxRefresh(pos, text);
}
WhenUpdate();
}