diff options
author | anekos | 2010-07-31 05:18:29 +0000 |
---|---|---|
committer | anekos | 2010-07-31 05:18:29 +0000 |
commit | 837d2219038900ae9af7fc0d695d11d930f1ff4d (patch) | |
tree | cbe83eeea28cfabfc5dafdeab1b957fea0e93793 | |
parent | 3a1b4987b365328f854352a03a42070412e19374 (diff) | |
download | vimperator-plugins-837d2219038900ae9af7fc0d695d11d930f1ff4d.tar.bz2 |
補完改善
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38070 d0d07461-0603-4401-acd4-de1884942a52
-rwxr-xr-x | twittperator.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/twittperator.js b/twittperator.js index 6b5ad32..75a7928 100755 --- a/twittperator.js +++ b/twittperator.js @@ -1423,7 +1423,7 @@ function setup() { // {{{ } function subCommandCompleter(context, args) { - if (!args.bang) + if (!args.bang || context.filter.length > 0) return; context.title = ["Sub command", "Description"]; @@ -1466,9 +1466,8 @@ function setup() { // {{{ let list = []; let doGet = (expiredStatus || !(history && history.length)) && autoStatusUpdate; - let matches = args.bang && args.literalArg.match(/[-+?@]/); - liberator.log(matches + ' ' + (matches ? matches.index : 0)); - context.offset += matches ? matches.index + 1: 0; + let matches = args.bang && args.literalArg.match(/[-+?]/); + context.offset += matches ? matches.index + 1 : 0; context.incomplete = doGet; context.hasitems = !doGet; targetContext = context; |