diff options
Diffstat (limited to 'src/hunks.zig')
| -rw-r--r-- | src/hunks.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hunks.zig b/src/hunks.zig index b30f09a6..00d4cc97 100644 --- a/src/hunks.zig +++ b/src/hunks.zig @@ -740,13 +740,13 @@ test "a .patch looked at opens its +Diff, and Diff goes to the text and back" { pardes.look.lookAt(p, 0, patch); try testing.expectEqual(@as(usize, 1), Count.of(p, hunks_path)); try testing.expectEqual(@as(usize, 0), Count.of(p, patch)); - const hid = p.active; + const hid = p.view().active; try testing.expectEqualStrings(hunks_path, p.panes[hid].?.file.?.path); try testing.expectEqualStrings("x.txt:1\n-a\n+b\n", p.panes[hid].?.file.?.content); // Diff on it: the patch as text. try testing.expect(p.executeBuiltinLine(hid, "Diff")); try testing.expectEqual(@as(usize, 1), Count.of(p, patch)); - const raw = p.active; + const raw = p.view().active; try testing.expectEqualStrings(patch, p.panes[raw].?.file.?.path); // Diff on the text: the +Diff again, refilled, not another. try testing.expect(p.executeBuiltinLine(raw, "Diff")); |
