diff --git a/uppsrc/CodeEditor/CodeEditor.cpp b/uppsrc/CodeEditor/CodeEditor.cpp index 822444a3c..811389ac5 100644 --- a/uppsrc/CodeEditor/CodeEditor.cpp +++ b/uppsrc/CodeEditor/CodeEditor.cpp @@ -233,7 +233,7 @@ void CodeEditor::SelectionChanged() Refresh(); } if(!foundsel) { - if(!persistent_find_replace && !findreplace.incremental) + if(!persistent_find_replace) CloseFindReplace(); found = false; notfoundfw = notfoundbk = false; @@ -618,7 +618,7 @@ void CodeEditor::FindWord(bool back) { WString I = GetI(); if(!IsNull(I)) - Find(back, I, true, false, false, false); + Find(back, I, true, false, false, false, false); } void CodeEditor::SetI(Ctrl *edit) diff --git a/uppsrc/CodeEditor/CodeEditor.h b/uppsrc/CodeEditor/CodeEditor.h index 57dcf4f28..49187c96a 100644 --- a/uppsrc/CodeEditor/CodeEditor.h +++ b/uppsrc/CodeEditor/CodeEditor.h @@ -283,6 +283,7 @@ protected: void ReplaceWildcard(); void InsertWildcard(int c); void IncrementalFind(); + void NoFindError(); void CheckSyntaxRefresh(int pos, const WString& text); void SetFound(int fi, int type, const WString& text); @@ -328,6 +329,7 @@ public: Callback WhenAnnotationMove; Callback WhenAnnotationClick; Callback WhenAnnotationRightClick; + Callback WhenOpenFindReplace; FrameTop