From: Vladimír Vondruš Date: Thu, 18 Jul 2019 11:30:59 +0000 (+0200) Subject: documentation: properly show 100+ when having more results that can fit. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=e8c761f0786af8f66158136a5521a768a9731c98;p=blog.git documentation: properly show 100+ when having more results that can fit. This got accidentally broken in 8bdb844ceb547d8ca3156ef815de9603e51a598a when implementing the Tab autocompletion. Unfortunately I can't really auto-test the UI code :/ --- diff --git a/documentation/search.js b/documentation/search.js index 0ebbf44f..d1a93878 100644 --- a/documentation/search.js +++ b/documentation/search.js @@ -555,7 +555,7 @@ var Search = { this.renderResults(value, results); if(value.trim().length) { document.getElementById('search-symbolcount').innerHTML = - results[0].length + (results.length >= this.maxResults ? '+' : '') + " results (" + Math.round((after - prev)*10)/10 + " ms)"; + results[0].length + (results[0].length >= this.maxResults ? '+' : '') + " results (" + Math.round((after - prev)*10)/10 + " ms)"; } else document.getElementById('search-symbolcount').innerHTML = this.symbolCount; },