mirror of
https://github.com/slap-editor/slap.git
synced 2024-09-11 04:45:47 +03:00
path/to/dir fixed
This commit is contained in:
parent
a7e2adbca3
commit
02563f8a8f
@ -68,10 +68,10 @@ var Pane = require('./ui/Pane');
|
||||
module.exports = function (options) {
|
||||
opts = _.merge(opts, options);
|
||||
return Slap.getUserDir().catch(Promise.resolve()).then(function (userDir) {
|
||||
|
||||
if (userDir) opts = _.merge({logger: {file: path.resolve(userDir, package.name+'.log')}}, opts);
|
||||
opts = _.merge({editor: {logger: opts.logger}}, opts);
|
||||
util.logger(opts.logger);
|
||||
|
||||
util.logger.info("loading...");
|
||||
util.logger.verbose("configuration:", opts);
|
||||
|
||||
@ -80,6 +80,7 @@ module.exports = function (options) {
|
||||
var slap = new Slap(opts);
|
||||
|
||||
Promise.all(opts._.map(function (path, i) {
|
||||
slap.fileBrowser.refresh(path, _.noop);
|
||||
return slap.open(path.toString(), !i);
|
||||
})).done();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user