diff options
author | anekos | 2010-06-21 16:28:09 +0000 |
---|---|---|
committer | anekos | 2010-06-21 16:28:09 +0000 |
commit | 8b66fec79c28926404f2e7ec6864c36847949b51 (patch) | |
tree | 0a191ef264dd28498c2e2f6e62389d4dbc818071 /edit-vimperator-files.js | |
parent | f70adcd41919d394b8b2da59fb493d99c084ecbb (diff) | |
download | vimperator-plugins-8b66fec79c28926404f2e7ec6864c36847949b51.tar.bz2 |
Firefoxゾンビ化防止
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37850 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'edit-vimperator-files.js')
-rwxr-xr-x | edit-vimperator-files.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/edit-vimperator-files.js b/edit-vimperator-files.js index 9334453..64ac3be 100755 --- a/edit-vimperator-files.js +++ b/edit-vimperator-files.js @@ -97,6 +97,13 @@ let INFO = function toArray (obj) (obj instanceof Array ? obj : obj.toString().split(/[,| \t\r\n]+/)); + function editFileExternally (path) { + let args = commands.parseArgs(options["editor"], [], "*", true); + liberator.assert(args.length >= 1, "No editor specified"); + args.push(path); + liberator.callFunctionInThread(null, io.run, io.expandPath(args.shift()), args, false); + } + let dirs = toArray(liberator.globalVariables.plugin_loader_roots); 'HOME USERPROFILE HOMEDRIVE'.split(/\s/).forEach( @@ -139,7 +146,7 @@ let INFO = function (args) { if (args['-autosource']) plugins.auto_source.start(args.literalArg); - editor.editFileExternally(args.literalArg); + editFileExternally(args.literalArg); }, { literal: 0, |