mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
fix: wait-after-command confirmation set
This commit is contained in:
@ -907,12 +907,7 @@ pub fn handleMessage(self: *Surface, msg: Message) !void {
|
||||
},
|
||||
|
||||
.close => self.close(),
|
||||
|
||||
// Close without confirmation.
|
||||
.child_exited => {
|
||||
self.child_exited = true;
|
||||
self.close();
|
||||
},
|
||||
.child_exited => self.child_exited = true,
|
||||
|
||||
.desktop_notification => |notification| {
|
||||
if (!self.config.desktop_notifications) {
|
||||
|
@ -418,6 +418,11 @@ fn processExitCommon(td: *termio.Termio.ThreadData, exit_code: u32) void {
|
||||
return;
|
||||
}
|
||||
|
||||
// Notify our surface that the child process has exited
|
||||
_ = td.surface_mailbox.push(.{
|
||||
.child_exited = {},
|
||||
}, .{ .forever = {} });
|
||||
|
||||
// We output a message so that the user knows whats going on and
|
||||
// doesn't think their terminal just froze. We show this unconditionally
|
||||
// on close even if `wait_after_command` is false and the surface closes
|
||||
@ -442,7 +447,7 @@ fn processExitCommon(td: *termio.Termio.ThreadData, exit_code: u32) void {
|
||||
|
||||
// Notify our surface we want to close
|
||||
_ = td.surface_mailbox.push(.{
|
||||
.child_exited = {},
|
||||
.close = {},
|
||||
}, .{ .forever = {} });
|
||||
}
|
||||
|
||||
@ -569,6 +574,9 @@ pub fn queueWrite(
|
||||
_ = td.surface_mailbox.push(.{
|
||||
.child_exited = {},
|
||||
}, .{ .forever = {} });
|
||||
_ = td.surface_mailbox.push(.{
|
||||
.close = {},
|
||||
}, .{ .forever = {} });
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user