diff options
Diffstat (limited to 'core/panes.zig')
| -rw-r--r-- | core/panes.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/panes.zig b/core/panes.zig index 0590a80d..e15ad180 100644 --- a/core/panes.zig +++ b/core/panes.zig @@ -273,6 +273,10 @@ pub const Pane = struct { /// Its walk: the places it stepped through, its owner when it is a /// reader, whether it is held (Trail.zig, pick-ui SPEC §6). trail: Trail = .{}, + /// The selections its recipe word's sam prompts made (gpa), for Look + /// on the word to put back (Prompt.zig, SPEC §7.5). + recipe_sels: []modal.Selection = &.{}, + recipe_pri: u16 = 0, /// `gw`'s words, labelled in order while it waits for a label to be /// typed (gpa-owned); `jump_first` is the label's first letter once typed. jump: std.ArrayList(modal.Selection) = .empty, @@ -1296,6 +1300,7 @@ pub fn teardownPane(p: *Pardes, pane: *Pane) void { pane.input.deinit(p.gpa); pane.jump.deinit(p.gpa); pane.places.deinit(p.gpa); + p.gpa.free(pane.recipe_sels); @import("jj.zig").forget(p, pane.serial); if (pane.query) |q| { q.deinit(p.gpa); |
