summaryrefslogtreecommitdiff
path: root/core/Trail.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Trail.zig')
-rw-r--r--core/Trail.zig10
1 files changed, 6 insertions, 4 deletions
diff --git a/core/Trail.zig b/core/Trail.zig
index 0ea893e2..cb5dedf8 100644
--- a/core/Trail.zig
+++ b/core/Trail.zig
@@ -338,8 +338,8 @@ pub fn stepAt(t: *const Trail, part: Part, off: usize) ?u8 {
}
/// Look on step `i` of pane `id`'s trail (ยง6.3): a place is gone back or
-/// forward to, the owner focused, a search lit again (Prompt.zig); a list
-/// or a recipe is the pickers' and the prompts' to take (not yet: said).
+/// forward to, the owner focused, a search lit again, a recipe's
+/// selections put back (Prompt.zig); a list is the pickers' (not yet: said).
pub fn lookStep(p: *Pardes, id: usize, i: u8) void {
const pane = p.panes[id] orelse return;
switch (pane.trail.steps[i]) {
@@ -348,7 +348,8 @@ pub fn lookStep(p: *Pardes, id: usize, i: u8) void {
p.view().active = owner;
} else p.reportFailure(id, "walk: its owner is closed"),
.search => pardes.Prompt.lookWord(p, id),
- .list, .recipe => p.setMessage(.at(id), "walk: a list or a recipe is not walked yet"),
+ .recipe => pardes.Prompt.lookRecipe(p, id),
+ .list => p.setMessage(.at(id), "walk: a list is not walked yet"),
}
}
@@ -359,7 +360,8 @@ pub fn execStep(p: *Pardes, id: usize, i: u8) void {
switch (pane.trail.steps[i]) {
.place, .owner => lookStep(p, id, i),
.search => pardes.Prompt.execWord(p, id),
- .list, .recipe => p.setMessage(.at(id), "walk: a list or a recipe is not run again yet"),
+ .recipe => pardes.Prompt.execRecipe(p, id),
+ .list => p.setMessage(.at(id), "walk: a list is not run again yet"),
}
}