Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/LocalEchoController.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ export default class LocalEchoController {
constructor(term = null, options = {}) {
this.term = term;
this._handleTermData = this.handleTermData.bind(this);
this._handleTermResize = this.handleTermResize.bind(this)
this._handleTermResize = this.handleTermResize.bind(this);

this.history = new HistoryController(options.historySize || 10);
this.maxAutocompleteEntries = options.maxAutocompleteEntries || 100;
this.isIncompleteInput = options.isIncompleteInput || isIncompleteInput;

this._autocompleteHandlers = [];
this._active = false;
Expand All @@ -43,7 +44,6 @@ export default class LocalEchoController {
};

this._disposables = [];

if (term) {
if (term.loadAddon) term.loadAddon(this);
else this.attach();
Expand Down Expand Up @@ -545,7 +545,7 @@ export default class LocalEchoController {
} else if (ord < 32 || ord === 0x7f) {
switch (data) {
case "\r": // ENTER
if (isIncompleteInput(this._input)) {
if (this.isIncompleteInput(this._input)) {
this.handleCursorInsert("\n");
} else {
this.handleReadComplete();
Expand Down