mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-15 20:23:50 -07:00
Always prepend ANSI reset code before re-assembling tokens
This commit is contained in:
@@ -112,7 +112,9 @@ func Run(opts *Options, revision string) {
|
||||
prevAnsiState := ansiState
|
||||
_, _, ansiState = extractColor(token.text.ToString(), ansiState, nil)
|
||||
if prevAnsiState != nil {
|
||||
token.text.Wrap(prevAnsiState.ToString(), "\x1b[m")
|
||||
token.text.Prepend("\x1b[m" + prevAnsiState.ToString())
|
||||
} else {
|
||||
token.text.Prepend("\x1b[m")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user