Unverified Commit 013aba89 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #2136 from ethereum/fixRunCommand

set isOpen to true only if there s autocomplete item to show
parents adab5ee4 22cde50a
......@@ -140,7 +140,6 @@ class AutoCompletePopup {
let autoCompleteInput = textList.length > 1 ? textList[textList.length - 1] : textList[0]
if (inputString.length >= 2) {
// more than 2 letters, start completion
this.isOpen = true
this.data._options = []
Commands.allPrograms.forEach(item => {
const program = getKeyOf(item)
......@@ -171,7 +170,7 @@ class AutoCompletePopup {
this.removeAutoComplete()
return
}
if (this.data._options.length) this.isOpen = true
yo.update(this._view, this.render())
return true
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment