summaryrefslogtreecommitdiff
path: root/src/look.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-10 05:48:20 -0300
committerGabriel Schneider <[email protected]>2026-11-10 05:52:38 -0300
commit3eb166e287ec5afbd54b03a86711610e1b5269b6 (patch)
tree3d0577ada14499c3dcad84926ab52b6c6f54c6f1 /src/look.zig
parent8903d352237919455996831047017ae57f2a83ef (diff)
downloadpardes-3eb166e287ec5afbd54b03a86711610e1b5269b6.tar.gz
pardes-3eb166e287ec5afbd54b03a86711610e1b5269b6.zip
panes: exec.noteRun and exec.commandDone become Pane methods (pane.noteRun, pane.commandDone) at the end of the Pane struct, beside the command_* fields they keep, since they act on one command pane; commandDone takes the pane its two callers in Core already hold, with its id for the close and the report, in place of looking it up again
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/look.zig')
-rw-r--r--src/look.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/look.zig b/src/look.zig
index d9a850d7..6ecebd41 100644
--- a/src/look.zig
+++ b/src/look.zig
@@ -1113,7 +1113,7 @@ fn lookUnresolved(p: *Pardes, id: usize, pane: *Pane, trimmed: []const u8, text:
/// A commit hash (7 to 40 hex digits, a letter and a digit among them)
/// looked at inside a git repository: `git show` it, paged into a +Pager,
/// which stacks its hunks in a +Diff (ctl.fillPager); the command pane
-/// goes when it succeeds (exec.commandDone).
+/// goes when it succeeds (Pane.commandDone).
// ponytail: a hex word that names no commit leaves git's error in a command pane, not a search; check the object first if that bites.
fn lookCommit(p: *Pardes, id: usize, pane: *Pane, word: []const u8) bool {
if (!isCommitHash(word)) return false;