optimistically show 1 in tally only for a code match

This commit is contained in:
tophf 2017-12-18 11:28:11 +03:00
parent 4522362f76
commit 4ecb6e7bc2

View File

@ -222,7 +222,7 @@ onDOMready().then(() => {
const radiateFrom = foundInCode ? index : editors.indexOf(cmStart);
setupOverlay(radiateArray(editors, radiateFrom));
enableReplaceButtons(foundInCode);
debounce(showTally, 0, found && !state.numFound ? 1 : undefined);
debounce(showTally, 0, foundInCode && !state.numFound ? 1 : undefined);
}