mirror of
https://github.com/slap-editor/slap.git
synced 2024-10-26 13:17:38 +03:00
parent
ed0fdc57ac
commit
94d8230e60
@ -74,23 +74,7 @@ Slap.prototype.open = Promise.method(function (filePath, current) {
|
|||||||
|
|
||||||
Slap.prototype.quit = function () {
|
Slap.prototype.quit = function () {
|
||||||
var self = this;
|
var self = this;
|
||||||
var quit = Promise.resolve();
|
self.screen.program.input.unref();
|
||||||
|
|
||||||
if (Editor.highlightClient) quit = quit
|
|
||||||
.return(Editor.highlightClient)
|
|
||||||
.then(function (client) {
|
|
||||||
if (!client) return;
|
|
||||||
client.dontRespawn = true;
|
|
||||||
self.panes.forEach(function (pane) { pane.detach(); });
|
|
||||||
});
|
|
||||||
|
|
||||||
quit
|
|
||||||
.delay(20) // FIXME: .delay(20) hack for I/O flush
|
|
||||||
.then(function () { process.exit(0); })
|
|
||||||
.done();
|
|
||||||
|
|
||||||
// this.program.input.removeAllListeners();
|
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
Slap.prototype.help = function () {
|
Slap.prototype.help = function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user