diff options
Diffstat (limited to 'src/builtins.zig')
| -rw-r--r-- | src/builtins.zig | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/builtins.zig b/src/builtins.zig index 85bb6e44..5a1c3061 100644 --- a/src/builtins.zig +++ b/src/builtins.zig @@ -428,7 +428,12 @@ pub const Kill = struct { for (c.p.panes, 0..) |slot, id| { const pane = slot orelse continue; const command: ?[]const u8 = if (pane.command) |line| (if (pane.command_done) null else line) else null; - if (command == null and !panes.terminal.commandRunning(pane)) continue; + // The command pardes last typed here, running now. + const typed_runs = if (pane.sent_command) |sent| typed: { + const at = panes.Term.prompt(pane.terminal); + break :typed at.phase == .running and at.started == sent.seq; + } else false; + if (command == null and !typed_runs) continue; running = true; const first = if (command) |line| first: { const said = std.mem.trim(u8, line, " \t"); |
