diff options
Diffstat (limited to 'core/exec.zig')
| -rw-r--r-- | core/exec.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/exec.zig b/core/exec.zig index 44cfea64..47fea012 100644 --- a/core/exec.zig +++ b/core/exec.zig @@ -751,6 +751,10 @@ pub fn runCommand(p: *Pardes, from: usize, line: []const u8) ?usize { if (other.command != null and other.command_done and !other.command_pty and std.mem.eql(u8, other.cwdSlice(), dir) and !leased(p, other.serial)) break i; } else null; if (reuse) |id| { + // A process started and its emulator written, as a new command + // pane's (panes.newCommand): the session's, which a speculation + // waits for, nothing of the pane changed first. + if (p.tape.authorityOnly("run a command")) return null; const pane = p.panes[id].?; const owned = p.gpa.dupe(u8, line) catch |err| { p.reportError(.at(from), "exec", err); |
