diff --git a/src/terminal/render.zig b/src/terminal/render.zig index bdc4693b1..94abeb60e 100644 --- a/src/terminal/render.zig +++ b/src/terminal/render.zig @@ -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, diff --git a/src/terminal/search.zig b/src/terminal/search.zig index 0f0c53c03..e69603c25 100644 --- a/src/terminal/search.zig +++ b/src/terminal/search.zig @@ -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());