Fix duplicate rendering of the last line in preview window

pull/624/head
Junegunn Choi 8 years ago
parent 6a52f8b8dd
commit a9a29dff4f
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -49,7 +49,7 @@ func extractColor(str string, state *ansiState, proc func(string, *ansiState) bo
prev := str[idx:offset[0]]
output.WriteString(prev)
if proc != nil && !proc(prev, state) {
break
return "", nil, nil
}
newState := interpretCode(str[offset[0]:offset[1]], state)

Loading…
Cancel
Save