Update search.scanCount correctly

Former-commit-id: c60309cbd9d027a464433885bc8e1c2ea9cbf6d8
This commit is contained in:
Jaifroid 2022-11-29 14:09:23 +00:00
parent 9ed97a219f
commit b2bc9dae1c

View File

@ -475,6 +475,7 @@ define(['zimfile', 'zimDirEntry', 'transformZimit', 'util', 'uiUtil', 'utf8'],
// Collect all the paths for full text search, pruning as we go
var path;
for (var j = 0; j < results.entries.length; j++) {
search.scanCount++;
path = results.entries[j].path;
// Full-text search result paths are missing the namespace in Type 1 ZIMs, so we add it back
path = cns === 'C' ? cns + '/' + path : path;