summaryrefslogtreecommitdiff
path: root/core/hunks.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/hunks.zig')
-rw-r--r--core/hunks.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/hunks.zig b/core/hunks.zig
index d3a8f5a7..a7d8e6cb 100644
--- a/core/hunks.zig
+++ b/core/hunks.zig
@@ -634,7 +634,7 @@ pub fn word(c: pardes.builtins.Ctx) void {
while (true) {
var buf: [4096]u8 = undefined;
const dot_git = std.fmt.bufPrint(&buf, "{s}/.git", .{dir}) catch return declined(p, c.id, "Diff: not in a git work tree");
- if (pardes.exec.kindOf(dot_git) != null) break;
+ if (pardes.exec.kindOf(p.tape, dot_git) != null) break;
dir = std.Io.Dir.path.dirname(dir) orelse return declined(p, c.id, "Diff: not in a git work tree");
}
// 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.