From 837d2219038900ae9af7fc0d695d11d930f1ff4d Mon Sep 17 00:00:00 2001 From: anekos Date: Sat, 31 Jul 2010 05:18:29 +0000 Subject: 補完改善 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38070 d0d07461-0603-4401-acd4-de1884942a52 --- twittperator.js | 7 +++---- 1 file 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; -- cgit v1.2.3