aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2015-09-29 22:12:04 +0900
committeranekos2015-09-29 22:12:04 +0900
commit42f513596cf2aea8d53daa61e67634777388f15b (patch)
tree34f4c6efbb2b5e1b054e107a2e5e74f0d55201d4
parent74a5a873bbede5bcd2f7dadabed19fabbdefe314 (diff)
downloadvimperator-plugins-42f513596cf2aea8d53daa61e67634777388f15b.tar.bz2
unletttttttttttttttttttttt
-rw-r--r--auto_source.js7
-rw-r--r--edit-vimperator-files.js7
2 files changed, 8 insertions, 6 deletions
diff --git a/auto_source.js b/auto_source.js
index 2054808..f98696f 100644
--- a/auto_source.js
+++ b/auto_source.js
@@ -121,9 +121,10 @@ let INFO = xml`
(files = files.filter(function (it) (!(it.path.indexOf(filepath) === 0 && func(it)+'-'))));
function expandPath (filepath) {
- function normalize (filepath)
- let (file = io.File(filepath))
- (file.normalize(), file.path);
+ function normalize (filepath) {
+ let file = io.File(filepath);
+ return (file.normalize(), file.path);
+ }
filepath = io.expandPath(filepath);
if (filepath.match(/\/|\w:[\\\/]/))
diff --git a/edit-vimperator-files.js b/edit-vimperator-files.js
index 27fc698..f9e5291 100644
--- a/edit-vimperator-files.js
+++ b/edit-vimperator-files.js
@@ -91,8 +91,9 @@ let INFO = xml`
dirs = util.Array.uniq(util.Array.compact(dirs).map(io.expandPath));
let getItems =
- let (lastTime, lastItems)
- function () {
+ (function () {
+ let lastTime, lastItems;
+ return function () {
if (lastTime && (new Date() - lastTime < 5 * 1000))
return lastItems;
return lastItems = util.Array.flatten([
@@ -103,8 +104,8 @@ let INFO = xml`
]
for ([, dir] in Iterator(dirs))
]);
-
};
+ })();
completion.vimperatorFiles =