(h: Highlight)
| 758 | } |
| 759 | |
| 760 | function dimContent(h: Highlight): void { |
| 761 | for (const line of h.lines) { |
| 762 | if (line.length > 0) { |
| 763 | line[0]![1] = DIM + line[0]![1] |
| 764 | const last = line.length - 1 |
| 765 | line[last]![1] = line[last]![1] + UNDIM |
| 766 | } |
| 767 | } |
| 768 | } |
| 769 | |
| 770 | function applyBackground(h: Highlight, theme: Theme, ranges: Range[]): void { |
| 771 | if (!h.marker) return |