mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-03 21:50:10 +03:00
Fix project search error incorrectly counting the result line number when searching with the wholeword flag.
A couple of minor fixes.
This commit is contained in:
@@ -64,6 +64,7 @@ searchInFileHorspool( const std::string& file, const std::string& text, const bo
|
||||
searchRes = String::BMH::find( fileText, text, searchRes, occ );
|
||||
if ( searchRes != -1 ) {
|
||||
if ( wholeWord && !String::isWholeWord( fileText, text, searchRes ) ) {
|
||||
totNl += countNewLines( fileText, lSearchRes, searchRes );
|
||||
lSearchRes = searchRes;
|
||||
searchRes += text.size();
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user