From 57ceb85e070ae8e1dbc76e7ba7447a2329b5ff45 Mon Sep 17 00:00:00 2001 From: anekos Date: Sun, 21 Dec 2008 06:36:52 +0000 Subject: Meow meow fix. git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@27147 d0d07461-0603-4401-acd4-de1884942a52 --- auto_source.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'auto_source.js') diff --git a/auto_source.js b/auto_source.js index 1b7284d..bb0abb9 100644 --- a/auto_source.js +++ b/auto_source.js @@ -3,7 +3,7 @@ var PLUGIN_INFO = Auto Source Sourcing automatically when the specified file is modified. 指定のファイルが変更されたら自動で :so する。 - 1.3 + 1.4 anekos 2.0pre 2.0pre @@ -50,7 +50,7 @@ var PLUGIN_INFO = files.some(function (it) (it.path.indexOf(filepath) === 0)) function remove (filepath, func) - (files = files.filter(function (it) (it.path.indexOf(filepath) !== 0 && (func(it)+'-')))); + (files = files.filter(function (it) (!(it.path.indexOf(filepath) === 0 && func(it)+'-')))); function expandPath (filepath) { filepath = io.expandPath(filepath); @@ -74,10 +74,11 @@ var PLUGIN_INFO = io.source(filepath); } } catch (e) { - killWatcher(filepath); liberator.echoerr('Error! ' + filepath); + killWatcher(filepath); } }, interval); + liberator.log('filepath: ' + filepath) files.push({handle: handle, path: filepath}); } -- cgit v1.2.3