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