Always prepend ANSI reset code before re-assembling tokens

This commit is contained in:
Junegunn Choi committed 2019-03-07 15:29:57 +09:00
1 parent e00e7e1e56
commit 85c1f8a9e0
4 files changed
+9 -7

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ func (s *ansiState) equals(t *ansiState) bool {
func (s *ansiState) ToString() string {
if !s.colored() {
return "\x1b[m"
return ""
}
ret := ""