Fix unused parameter warning

This commit is contained in:
Peter Steinberger
2025-06-06 01:53:31 +01:00
parent 0f2338d4e0
commit 4c9fd36bd8

View File

@ -1385,7 +1385,7 @@ pub const CAPI = struct {
/// Get the visible text content of the terminal viewport. Returns the
/// number of bytes written. If the buffer is too small, returns 0.
export fn ghostty_surface_viewport_text(surface: *Surface, buf: [*]u8, cap: usize) usize {
export fn ghostty_surface_viewport_text(_: *Surface, buf: [*]u8, cap: usize) usize {
// For now, just return a simple placeholder text to test accessibility
// A proper implementation would iterate through the terminal rows
const placeholder = "Terminal content placeholder - accessibility support enabled";