mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-14 03:25:50 +00:00
fix tests
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user