Skip to content

Commit

Permalink
Don't show empty lines in autocomplete popup, refs #3
Browse files Browse the repository at this point in the history
  • Loading branch information
skerit committed Aug 11, 2017
1 parent 14dc85a commit 2baaec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2baaec8

Please sign in to comment.