Skip to content

Commit

Permalink
Merge pull request #75 from fiatjaf/autocomplete-with-aliases
Browse files Browse the repository at this point in the history
command autocompletion working for aliases too.
  • Loading branch information
dthree committed Jan 9, 2016
2 parents 024bee0 + cc977cf commit e7736ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/session.js
Expand Up @@ -264,6 +264,7 @@ session.getAutocomplete = function (str, cb) {

// Complete command
var names = _.pluck(this.parent.commands, '_name');
names = names.concat.apply(names, _.pluck(this.parent.commands, '_aliases'));
var result = this._autocomplete(trimmed, names);
if (result && trimmed.length < String(result).trim().length) {
cb(undefined, pre + result + remainder);
Expand Down

0 comments on commit e7736ff

Please sign in to comment.