terminal: fix lib-vt test builds

pull/9662/head
Mitchell Hashimoto 2025-11-20 06:13:05 -10:00
parent cd00a8a2ab
commit 6e5e24c3ca
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
2 changed files with 10 additions and 2 deletions

View File

@ -524,7 +524,7 @@ pub const RenderState = struct {
/// rows. This is useful for a minimal viewport search.
///
/// NOTE: There is a limitation in that wrapped lines before/after
/// the the top/bottom line of the viewport are not inluded, since
/// the the top/bottom line of the viewport are not included, since
/// the render state cuts them off.
pub fn string(
self: *const RenderState,

View File

@ -1,10 +1,18 @@
//! Search functionality for the terminal.
pub const options = @import("terminal_options");
pub const Active = @import("search/active.zig").ActiveSearch;
pub const PageList = @import("search/pagelist.zig").PageListSearch;
pub const Screen = @import("search/screen.zig").ScreenSearch;
pub const Viewport = @import("search/viewport.zig").ViewportSearch;
pub const Thread = @import("search/Thread.zig");
// The search thread is not available in libghostty due to the xev dep
// for now.
pub const Thread = switch (options.artifact) {
.ghostty => @import("search/Thread.zig"),
.lib => void,
};
test {
@import("std").testing.refAllDecls(@This());