diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-10 09:57:43 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-10 09:57:43 -0300 |
| commit | a953f560f648e91dda8dd3a8dafe60a7f75739d0 (patch) | |
| tree | 1ae6de86ede6b0e1464708c04478340609e4296e /src/exec.zig | |
| parent | 5033138d9e93e05dc961c0f7b93e46208d5df33d (diff) | |
| download | pardes-a953f560f648e91dda8dd3a8dafe60a7f75739d0.tar.gz pardes-a953f560f648e91dda8dd3a8dafe60a7f75739d0.zip | |
history: each dump is the command that brings it back, `Restore <label>` on a line of its own, its date, size, pane count and names indented on the line under it, so the line is a whole command (a sweep of it, a click on its Restore, a look at it) and the details are read, not parsed; the builtins JSON, the reference and the changelog say so
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/exec.zig')
| -rw-r--r-- | src/exec.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exec.zig b/src/exec.zig index 06752ffd..df578d08 100644 --- a/src/exec.zig +++ b/src/exec.zig @@ -216,8 +216,8 @@ pub fn operandAt(p: *Pardes, pane: *Pane, clicked: Pane.Sel, borrow: bool, for_l if (source_col < word_from or word_from > line.len) return result; const word = look.expandedWord(line[word_from..], source_col - word_from) orelse return result; var b: look.ExpandedWord = .{ .lo = word.lo + word_from, .hi = word.hi + word_from }; - // A +History row's `Restore` is that row's: a click on it (an exec, - // or a look) takes the label beside it, as the row reads. + // A +History line's `Restore` is that line's: a click on it (an + // exec, or a look) takes the label beside it, as the line reads. if (look.isHistoryList(pane) and std.mem.eql(u8, line[b.lo..b.hi], "Restore")) { const rest = std.mem.trimStart(u8, line[b.hi..], " "); if (std.mem.startsWith(u8, rest, "pardes-")) b.hi = (line.len - rest.len) + (std.mem.indexOfAny(u8, rest, " \t") orelse rest.len); |
