Focus a cell, landing the block cursor at a source offset (or its last * char). Used when h/l cross a cell boundary and by j/k.
(row: number, col: number, offset: number | 'end')
| 878 | /** Focus a cell, landing the block cursor at a source offset (or its last |
| 879 | * char). Used when h/l cross a cell boundary and by j/k. */ |
| 880 | private focusCellAtOffset(row: number, col: number, offset: number | 'end'): void { |
| 881 | const cell = this.cellEl(row, col) |
| 882 | if (!cell) return |
| 883 | this.pendingOffset = offset |
| 884 | cell.focus() |
| 885 | } |
| 886 | |
| 887 | /** Put a focused cell into NORMAL mode: non-editable, raw source shown, with |
| 888 | * the block cursor drawn over the current character. */ |
no test coverage detected