aboutsummaryrefslogtreecommitdiffstats
path: root/fuzzyMode.js
diff options
context:
space:
mode:
Diffstat (limited to 'fuzzyMode.js')
-rw-r--r--fuzzyMode.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/fuzzyMode.js b/fuzzyMode.js
index 9e3b09e0..c3b20096 100644
--- a/fuzzyMode.js
+++ b/fuzzyMode.js
@@ -152,7 +152,6 @@ var fuzzyMode = (function() {
this.completionList.style.display = 'none';
return;
}
- this.completionList.style.display = 'block';
var self = this;
this.completer.filter(this.query, function(completions) {
@@ -167,6 +166,8 @@ var fuzzyMode = (function() {
li.innerHTML = completions[i].render();
self.completionList.appendChild(li);
}
+
+ self.completionList.style.display = completions.length > 0 ? 'block' : 'none';
self.updateSelection();
});
},