diff --git a/src/search/SearchModel.js b/src/search/SearchModel.js index ba9b097b98d..dfb008038ac 100644 --- a/src/search/SearchModel.js +++ b/src/search/SearchModel.js @@ -168,9 +168,9 @@ define(function (require, exports, module) { // Remove final result if there have been over MAX_TOTAL_RESULTS found if (this.numMatches > SearchModel.MAX_TOTAL_RESULTS) { this.results[fullpath].matches.pop(); - this.numMatches--; + this.numMatches -= 1; this.exceedsMaximum = true; - } + } } };