diff --git a/src/search_engine.cpp b/src/search_engine.cpp index b0105ce1..be56f070 100644 --- a/src/search_engine.cpp +++ b/src/search_engine.cpp @@ -589,7 +589,8 @@ void SearchEngine::Search() found = copy.GetComment() == s.GetComment(); } - copy.NullMe(); + if (CaseSensitive || MatchToPattern) + copy.NullMe(); (*it)->CopyPtr(0); if (found && any_found)