From 0afdf97cb20f7c1f654864e7f26818793c7863be Mon Sep 17 00:00:00 2001 From: anekos Date: Tue, 3 Aug 2010 23:07:16 +0000 Subject: <> とかをアンエスケイプ git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38160 d0d07461-0603-4401-acd4-de1884942a52 --- twittperator.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/twittperator.js b/twittperator.js index b40e4fd..2b6cbaa 100755 --- a/twittperator.js +++ b/twittperator.js @@ -1405,6 +1405,8 @@ function loadPlugins() { // {{{ let (s = ("retweeted_status" in status) ? status.retweeted_status : status) func(s); + let ub = unescapeBrakets; + const Completers = { name: function (context, args) { context.completions = @@ -1412,11 +1414,11 @@ function loadPlugins() { // {{{ }, link: function (context, args) { context.completions = - history.filter(function (s) /https?:\/\//(s.text)).map(rt(function(s) [s.text, s])); + history.filter(function (s) /https?:\/\//(s.text)).map(rt(function(s) [ub(s.text), s])); }, text: function (context, args) { context.completions = - history.map(rt(function(s) [s.text, s])); + history.map(rt(function(s) [ub(s.text), s])); }, name_id: function (context, args) { context.completions = @@ -1424,7 +1426,7 @@ function loadPlugins() { // {{{ }, name_id_text: function (context, args) { context.completions = - history.map(rt(function(s) ["@" + s.user.screen_name + "#" + s.id + ": " + s.text, s])); + history.map(rt(function(s) ["@" + s.user.screen_name + "#" + s.id + ": " + ub(s.text), s])); } }; -- cgit v1.2.3