mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-25 06:18:37 +00:00
Expose a C API for checking whether a GhosttyPoint is inside a GhosttySelection. The new terminal helper validates the selection snapshot against the active screen, resolves the point to a grid pin, and delegates to the internal Selection.contains implementation so C consumers get the same linear and rectangular selection semantics as Ghostty. Wire the symbol through the C API exports and public headers, and add a focused test covering linear containment and rectangular selection behavior.