diff --git a/CliClient/app/gui/StatusBarWidget.js b/CliClient/app/gui/StatusBarWidget.js index 584ff7091..286ba6794 100644 --- a/CliClient/app/gui/StatusBarWidget.js +++ b/CliClient/app/gui/StatusBarWidget.js @@ -14,10 +14,6 @@ class StatusBarWidget extends BaseWidget { this.inputEventEmitter_ = null; this.history_ = []; this.items_ = []; - this.autocomplete_ = null; - app().commandNames().then(function(names){ - this.autocomplete_ = names; - }.bind(this)); } get name() { @@ -28,7 +24,7 @@ class StatusBarWidget extends BaseWidget { return false; } - setItemAt(index, text) { + setItemAt(index, text) { this.items_[index] = stripAnsi(text).trim(); this.invalidate(); } @@ -114,9 +110,9 @@ class StatusBarWidget extends BaseWidget { cancelable: true, history: this.history, default: this.promptState_.initialText, - autoComplete: handleAutocompletion, - autoCompleteMenu: true, - autoCompleteHint : true, + autoComplete: handleAutocompletion, + autoCompleteMenu: true, + autoCompleteHint : true, }; if ('cursorPosition' in this.promptState_) options.cursorPosition = this.promptState_.cursorPosition;