aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--auto_source.js2
-rw-r--r--fetchyoutube.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/auto_source.js b/auto_source.js
index cd6c7fa..c866a4d 100644
--- a/auto_source.js
+++ b/auto_source.js
@@ -73,7 +73,7 @@
argCount: '1',
completer: function (arg, bang) {
return bang ? [0, [[filepath, ''] for (filepath in files)]]
- : completion.file.apply(this, arguments);
+ : completion.file(arg);
}
},
true
diff --git a/fetchyoutube.js b/fetchyoutube.js
index 69ea3b6..5e1b699 100644
--- a/fetchyoutube.js
+++ b/fetchyoutube.js
@@ -4,7 +4,7 @@
// @license Creative Commons 2.1 (Attribution + Share Alike)
// @version 1.0
// @author anekos (anekos@snca.net)
-// @minVersion 2.0pre
+// @minVersion 1.2
// @maxVersion 2.0pre
// ==/VimperatorPlugin==
//
@@ -72,7 +72,7 @@
['fetchyoutube', 'fetchyt'],
'fecth YouTube HD video',
fetch,
- {argCount: '*', completer: completion.file},
+ {argCount: '*', completer: function (arg) completion.file(arg)},
true
);