mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-25 14:22:54 -06:00
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:
parent
0cba2e7a5f
commit
cfd6d665ee
1 changed files with 6 additions and 5 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue