Fix duplicate rendering of the last line in preview window
This commit is contained in:
parent
6a52f8b8dd
commit
a9a29dff4f
@ -49,7 +49,7 @@ func extractColor(str string, state *ansiState, proc func(string, *ansiState) bo
|
|||||||
prev := str[idx:offset[0]]
|
prev := str[idx:offset[0]]
|
||||||
output.WriteString(prev)
|
output.WriteString(prev)
|
||||||
if proc != nil && !proc(prev, state) {
|
if proc != nil && !proc(prev, state) {
|
||||||
break
|
return "", nil, nil
|
||||||
}
|
}
|
||||||
newState := interpretCode(str[offset[0]:offset[1]], state)
|
newState := interpretCode(str[offset[0]:offset[1]], state)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user