Vim NORMAL `j`: header → first body row → … → past the last row leaves the * table downward, keeping the column offset (clamped).
(row: number, col: number)
| 964 | /** Vim NORMAL `j`: header → first body row → … → past the last row leaves the |
| 965 | * table downward, keeping the column offset (clamped). */ |
| 966 | private moveRowDown(row: number, col: number): void { |
| 967 | const target = row === -1 ? 0 : row + 1 |
| 968 | if (target >= this.model.rows.length) { |
| 969 | this.exitToEditor('after') |
| 970 | return |
| 971 | } |
| 972 | this.focusCellAtOffset(target, col, this.cursorOffset) |
| 973 | } |
| 974 | |
| 975 | /** Vim NORMAL `k`: body row → … → header → past the header leaves upward. */ |
| 976 | private moveRowUp(row: number, col: number): void { |
no test coverage detected