mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-05 04:47:52 +00:00
terminal: fix lib-vt test builds
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user