terminal: fix lib-vt test builds
parent
cd00a8a2ab
commit
6e5e24c3ca
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in New Issue