diff --git a/edit/global-search.js b/edit/global-search.js index 4d48d719..8630273c 100644 --- a/edit/global-search.js +++ b/edit/global-search.js @@ -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); }