renderHighlights renders the highlight regions as a highlighted background color.
(stln, edln int)
| 268 | // renderHighlights renders the highlight regions as a |
| 269 | // highlighted background color. |
| 270 | func (ed *Editor) renderHighlights(stln, edln int) { |
| 271 | for _, reg := range ed.Highlights { |
| 272 | reg := ed.Buffer.AdjustRegion(reg) |
| 273 | if reg.IsNil() || (stln >= 0 && (reg.Start.Ln > edln || reg.End.Ln < stln)) { |
| 274 | continue |
| 275 | } |
| 276 | ed.renderRegionBox(reg, ed.HighlightColor) |
| 277 | } |
| 278 | } |
| 279 | |
| 280 | // renderScopelights renders a highlight background color for regions |
| 281 | // in the Scopelights list. |
no test coverage detected