aboutsummaryrefslogtreecommitdiffstats
path: root/twittperator.js
diff options
context:
space:
mode:
authoranekos2010-08-03 23:07:16 +0000
committeranekos2010-08-03 23:07:16 +0000
commit0afdf97cb20f7c1f654864e7f26818793c7863be (patch)
treea046b7dcb3507a8d3f029921c9d4fc72451cdd39 /twittperator.js
parent0d83311b33d22f96120791abed14ba7a61a912c9 (diff)
downloadvimperator-plugins-0afdf97cb20f7c1f654864e7f26818793c7863be.tar.bz2
<> とかをアンエスケイプ
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38160 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'twittperator.js')
-rwxr-xr-xtwittperator.js8
1 files 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]));
}
};