From 1a6eccaaa51d185cea7ffe57f46d58d63a0f518e Mon Sep 17 00:00:00 2001 From: anekos Date: Fri, 6 Aug 2010 14:51:13 +0000 Subject: 標準 @ 補完を賢くした git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38210 d0d07461-0603-4401-acd4-de1884942a52 --- twittperator.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/twittperator.js b/twittperator.js index 27de5b7..cd4557f 100755 --- a/twittperator.js +++ b/twittperator.js @@ -28,7 +28,7 @@ let PLUGIN_INFO = twittperator Twitter Client using ChirpStream OAuth対応Twitterクライアント - 1.0.0 + 1.0.1 2.3 2.4 teramako @@ -1633,8 +1633,8 @@ function loadPlugins() { // {{{ let m; if (m = args.literalArg.match(/(RT\s+)@.*$/)) { Completers.name_id_text(context, args); - } else if (m = tailMatch(/(^|\b)@[^@]*/, args.literalArg)) { - Completers.name_id(context, args); + } else if (m = tailMatch(/(^|[\b\s])@[^@]*/, args.literalArg)) { + (m.index === 0 ? Completers.name_id : Completers.name)(context, args); } if (m) -- cgit v1.2.3