( s: SelectionState, col: number, row: number, )
| 696 | * Used by the renderer to apply inverse style. |
| 697 | */ |
| 698 | export function isCellSelected( |
| 699 | s: SelectionState, |
| 700 | col: number, |
| 701 | row: number, |
| 702 | ): boolean { |
| 703 | const b = selectionBounds(s) |
| 704 | if (!b) return false |
| 705 | const { start, end } = b |
| 706 | if (row < start.row || row > end.row) return false |
| 707 | if (row === start.row && col < start.col) return false |
| 708 | if (row === end.row && col > end.col) return false |
| 709 | return true |
| 710 | } |
| 711 | |
| 712 | /** Extract text from one screen row. When the next row is a soft-wrap |
| 713 | * continuation (screen.softWrap[row+1]>0), clamp to that content-end |
nothing calls this directly
no test coverage detected