Skip to content
Myr

Suppress ANSI colors in preview window if --no-color is set

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 3a6af27 · 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/terminal.go+1 added-1 removed
956 unmodified lines
957 if !t.preview.wrap {958 trimmed, _ = t.trimRight(trimmed, maxWidth-t.pwindow.X())959 }960 str, _ = t.processTabs(trimmed, 0)961 if ansi != nil && ansi.colored() {961 if t.theme != nil && ansi != nil && ansi.colored() {962 fillRet = t.pwindow.CFill(ansi.fg, ansi.bg, ansi.attr, str)963 } else {964 fillRet = t.pwindow.Fill(str)965 }
822 unmodified lines