From cfd6d665eee8da25b1824e3f03e710cf1a4db155 Mon Sep 17 00:00:00 2001 From: cxl Date: Mon, 22 Sep 2014 14:52:09 +0000 Subject: [PATCH] ide: Fixed minor issue with code rescan git-svn-id: svn://ultimatepp.org/upp/trunk@7718 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CodeEditor/CodeEditor.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/uppsrc/CodeEditor/CodeEditor.cpp b/uppsrc/CodeEditor/CodeEditor.cpp index 6befd44f0..32b4958a0 100644 --- a/uppsrc/CodeEditor/CodeEditor.cpp +++ b/uppsrc/CodeEditor/CodeEditor.cpp @@ -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(); }