Skip to content
Myr

Reset full-background property after a new line

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 19d858f · Browse files · 2 files+5 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−0 removed

  • other:+5 added−0 removed

2 files+5 added−0 removed

modified:src/ansi.go+2 added
285 unmodified lines
286 offsets = append(offsets, ansiOffset{287 [2]int32{int32(runeCount), int32(runeCount)},288 marker,289 })290 // Reset the full-line background color291 newState.lbg = -1292 }293 }294295 if newState.colored() {
219 unmodified lines
modified:src/core.go+3 added
86 unmodified lines
87 marker.color.bg = newState.lbg88 marker.color.attr = marker.color.attr | tui.FullBg89 newOffsets := append(*offsets, marker)90 offsets = &newOffsets9192 // Reset the full-line background color93 lineAnsiState.lbg = -194 }95 return util.ToChars(stringBytes(trimmed)), offsets96 }97 }
438 unmodified lines