diff options
author | anekos | 2008-12-21 06:36:52 +0000 |
---|---|---|
committer | anekos | 2008-12-21 06:36:52 +0000 |
commit | 57ceb85e070ae8e1dbc76e7ba7447a2329b5ff45 (patch) | |
tree | 4b01079a8d0b6be9e9483482731a0b6975d5dbf0 /auto_source.js | |
parent | 70f6df9b92587563130b92e6972fa246f69fa9e3 (diff) | |
download | vimperator-plugins-57ceb85e070ae8e1dbc76e7ba7447a2329b5ff45.tar.bz2 |
Meow meow fix.
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@27147 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'auto_source.js')
-rw-r--r-- | auto_source.js | 7 |
1 files changed, 4 insertions, 3 deletions
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 = <name> Auto Source </name> <description>Sourcing automatically when the specified file is modified.</description> <description lang="ja">指定のファイルが変更されたら自動で :so する。</description> - <version>1.3</version> + <version>1.4</version> <author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author> <minVersion>2.0pre</minVersion> <maxVersion>2.0pre</maxVersion> @@ -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}); } |