summaryrefslogtreecommitdiff
path: root/core/exec.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/exec.zig')
-rw-r--r--core/exec.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/exec.zig b/core/exec.zig
index 3bb6e809..6b05cb8e 100644
--- a/core/exec.zig
+++ b/core/exec.zig
@@ -633,6 +633,8 @@ const max_exec_depth = 8;
/// child is `$SHELL -c` the line, which shows its output and `exit N` when
/// done, and which Kill signals. Answers the pane it went to.
pub fn execute(p: *Pardes, id: usize, txt: []const u8) ?usize {
+ // A question's answer word, on the pane it waits on (B2 on `Reload`).
+ if (pardes.Messages.answerWord(p, id, txt)) return null;
return executeFrom(p, id, txt, false);
}