(col)
| 60 | |
| 61 | // `prevIndentTabStop`, distance to the previous tab stop from `col`. |
| 62 | const prevTabDist = (col) => { const r = col % TAB_SIZE; return r === 0 ? TAB_SIZE : r; }; |
| 63 | |
| 64 | // Full lines covered by `sel`; excludes the trailing line if `sel.end` sits exactly past a `\n`. |
| 65 | const lineRange = (text, sel) => { |