From e8c761f0786af8f66158136a5521a768a9731c98 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 18 Jul 2019 13:30:59 +0200 Subject: [PATCH] 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 :/ --- documentation/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }, -- 2.30.2