mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-18 05:20:29 +00:00
fix: handle double tmux control mode exit command
This commit is contained in:
@@ -398,11 +398,16 @@ pub const StreamHandler = struct {
|
||||
break :tmux;
|
||||
},
|
||||
|
||||
.exit => if (self.tmux_viewer) |viewer| {
|
||||
// Free our viewer state
|
||||
viewer.deinit();
|
||||
self.alloc.destroy(viewer);
|
||||
self.tmux_viewer = null;
|
||||
.exit => {
|
||||
// Free our viewer state if we have one
|
||||
if (self.tmux_viewer) |viewer| {
|
||||
viewer.deinit();
|
||||
self.alloc.destroy(viewer);
|
||||
self.tmux_viewer = null;
|
||||
}
|
||||
|
||||
// And always break since we assert below
|
||||
// that we're not handling an exit command.
|
||||
break :tmux;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user