aboutsummaryrefslogtreecommitdiffstats
path: root/session-manager.js
diff options
context:
space:
mode:
authoranekos2011-06-07 04:07:34 +0900
committeranekos2011-06-07 04:08:44 +0900
commit7eaf3037a993b72d95f630902a2c19d929ada602 (patch)
tree4433c9251d2289898ae7fa98453fb6128dac1764 /session-manager.js
parent9cfb5d9d53086142ff2d42ae710822f5f2310e5c (diff)
downloadvimperator-plugins-7eaf3037a993b72d95f630902a2c19d929ada602.tar.bz2
RegExp の関数的な呼び出しができなくなったので修正 for Firefox5
Diffstat (limited to 'session-manager.js')
-rw-r--r--session-manager.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/session-manager.js b/session-manager.js
index 0e377ba..10a7706 100644
--- a/session-manager.js
+++ b/session-manager.js
@@ -220,7 +220,7 @@ let INFO =
context.completions = [
[file.leafName.replace(/\.session$/, ''), new Date(file.lastModifiedTime)]
for ([,file] in Iterator(io.File(gSessionManager.getSessionDir()).readDirectory()))
- if (!ignoreAuto || args['-auto'] || !/^(backup(-\d+)?|autosave)\.session$/(file.leafName))
+ if (!ignoreAuto || args['-auto'] || !/^(backup(-\d+)?|autosave)\.session$/.test(file.leafName))
].sort(function ([, a], [, b]) (b - a));
}
},