summaryrefslogtreecommitdiff
path: root/core/Jump.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Jump.zig')
-rw-r--r--core/Jump.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/Jump.zig b/core/Jump.zig
index 3632a039..143aa9b5 100644
--- a/core/Jump.zig
+++ b/core/Jump.zig
@@ -472,6 +472,8 @@ test "Ctrl-o pops the walk one word at a time (UX L'1): after SPC f f words, Ent
defer p.deinit();
var tmp = std.testing.tmpDir(.{});
defer tmp.cleanup();
+ // A work tree of its own: Find searches it, not the one the test runs in.
+ try tmp.dir.createDir(std.testing.io, ".git", .default_dir);
var text: [60 * 16]u8 = undefined;
var w: std.Io.Writer = .fixed(&text);
for (1..61) |n| try w.print("{s} {d}\n", .{ if (n % 12 == 4) "in_word" else "line", n });