mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-25 06:18:37 +00:00
Render-state rows already expose their selected range, but cell-oriented C API consumers had to fetch that row range separately and duplicate the containment check while rendering. Add a SELECTED row-cells data kind that carries the row selection into the row-cells wrapper and returns whether the current cell column is in that inclusive range. The field remains separate from cell colors and style so selection stays an explicit render overlay policy. For performance reasons, the span-based row getter is recommended still but this is a convenient thing to do for cell-oriented folks.