Permalink
Browse files

also set tab.argv when completing

  • Loading branch information...
mafintosh committed Jul 24, 2014
1 parent 791865f commit 361525c37ce85e9aed5baa6cf7940a83812be5fd
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
@@ -108,7 +108,7 @@ var complete = function(index, words) {
var prev = words[index-1] || '';
var _ = minimist(words.slice(0, index+1))._;
var cmd = _[0];
- var argv = normalize(cmd, minimist(words));
+ var argv = tab.argv = normalize(cmd, minimist(words));
var callback = function(err, values, opts) {
if (err) return process.exit(1);

0 comments on commit 361525c

Please sign in to comment.