do not clear found positions list if next input was empty
This commit is contained in:
@@ -82,7 +82,7 @@
|
||||
|
||||
#define CLEAR_FIND_HISTORY \
|
||||
do { \
|
||||
found_pos = 0; \
|
||||
found_pos = -1; \
|
||||
vFoundPositions.clear(); \
|
||||
} while (0)
|
||||
|
||||
@@ -3134,8 +3134,6 @@ int main(int argc, char *argv[])
|
||||
continue;
|
||||
|
||||
string how = Keypressed(input, Key.FindForward) ? "forward" : "backward";
|
||||
found_pos = -1;
|
||||
vFoundPositions.clear();
|
||||
LockStatusbar();
|
||||
Statusbar() << "Find " << how << ": ";
|
||||
string findme = wFooter->GetString();
|
||||
@@ -3145,6 +3143,8 @@ int main(int argc, char *argv[])
|
||||
continue;
|
||||
ToLower(findme);
|
||||
|
||||
CLEAR_FIND_HISTORY;
|
||||
|
||||
ShowMessage("Searching...");
|
||||
List *mList = reinterpret_cast<Menu<Song> *>(wCurrent);
|
||||
for (size_t i = (wCurrent == mSearcher ? search_engine_static_options : 0); i < mList->Size(); i++)
|
||||
|
||||
Reference in New Issue
Block a user