From 9be8962fb5e068187062681725d61673806f22dd Mon Sep 17 00:00:00 2001
From: anekos
Date: Fri, 23 Apr 2010 04:59:32 +0000
Subject: *.js 以外は context を考慮しないようにした
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37257 d0d07461-0603-4401-acd4-de1884942a52
---
auto_source.js | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
(limited to 'auto_source.js')
diff --git a/auto_source.js b/auto_source.js
index 85446c6..74cb43e 100644
--- a/auto_source.js
+++ b/auto_source.js
@@ -38,7 +38,7 @@ let PLUGIN_INFO =
Auto Source
Sourcing automatically when the specified file is modified.
指定のファイルが変更されたら自動で :so する。
- 1.5.1
+ 1.5.2
anekos
2.3
2.3
@@ -67,7 +67,7 @@ let PLUGIN_INFO =
]]>
;
let INFO =
-
@@ -135,14 +135,16 @@ let INFO =
function source (filepath) {
io.source(filepath);
- let ctx = liberator.plugins.contexts[filepath];
- liberator.log(filepath);
- if (ctx) {
- liberator.log(ctx.NAME);
- if (typeof liberator.plugins[ctx.NAME] === 'undefined')
- liberator.plugins[ctx.NAME] = ctx;
- } else {
- liberator.echoerr('plugin_loader.js: context not found (' + filepath + ')');
+ if (/\.js$/(filepath)) {
+ let ctx = liberator.plugins.contexts[filepath];
+ liberator.log(filepath);
+ if (ctx) {
+ liberator.log(ctx.NAME);
+ if (typeof liberator.plugins[ctx.NAME] === 'undefined')
+ liberator.plugins[ctx.NAME] = ctx;
+ } else {
+ liberator.echoerr('plugin_loader.js: context not found (' + filepath + ')');
+ }
}
}
--
cgit v1.2.3