Skip to content
Myr

Fix duplicate rendering of the last line in preview window

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 6a52f8b · Browse files · 1 file+1 added−1 removed
This commit

State

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

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/ansi.go+1 added-1 removed
47 unmodified lines
48 for _, offset := range ansiRegex.FindAllStringIndex(str, -1) {49 prev := str[idx:offset[0]]50 output.WriteString(prev)51 if proc != nil && !proc(prev, state) {52 break52 return "", nil, nil53 }54 newState := interpretCode(str[offset[0]:offset[1]], state)5556 if !newState.equals(state) {
100 unmodified lines