From 2baaec813b0d29171dfca6352c0f90cb53e18fca Mon Sep 17 00:00:00 2001 From: Jelle De Loecker Date: Fri, 11 Aug 2017 17:58:43 +0200 Subject: [PATCH] Don't show empty lines in autocomplete popup, refs #3 --- lib/init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/init.js b/lib/init.js index 6c74812..c848400 100644 --- a/lib/init.js +++ b/lib/init.js @@ -1011,7 +1011,7 @@ JanewayClass.setMethod(function autocomplete(cmd, key) { list = this.popup('autocomplete', { position: { left : left, - height : this.config.autocomplete.height, + height : Math.min(this.config.autocomplete.height, items.length + 2), width : width + 4 }, items : items