fix tests

This commit is contained in:
Mitchell Hashimoto
2026-02-19 14:10:32 -08:00
parent eb335fb8dd
commit 2a62f21bf0
3 changed files with 3 additions and 3 deletions

View File

@@ -143,7 +143,7 @@ test "cursor: always block with preedit" {
// If we're scrolled though, then we don't show the cursor.
for (0..100) |_| try term.index();
try term.scrollViewport(.{ .top = {} });
term.scrollViewport(.{ .top = {} });
try state.update(alloc, &term);
// In any bool state

View File

@@ -1092,7 +1092,7 @@ test "cursor state out of viewport" {
try testing.expectEqual(1, state.cursor.viewport.?.y);
// Scroll the viewport
try t.scrollViewport(.top);
t.scrollViewport(.top);
try state.update(alloc, &t);
// Set a style on the cursor

View File

@@ -358,7 +358,7 @@ test "history search, no active area" {
try testing.expect(t.screens.active.pages.pages.first != t.screens.active.pages.pages.last);
try s.nextSlice("Buzz\r\nFizz");
try t.scrollViewport(.top);
t.scrollViewport(.top);
var search: ViewportSearch = try .init(alloc, "Fizz");
defer search.deinit();