Skip to content
Myr

Fix nil error on --color=bw

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

Fix #2229

authored by Junegunn Choi · committed by Junegunn Choi · parent a7d3b72 · 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/options.go+1 added-1 removed
615 unmodified lines
616 theme = dupeTheme(tui.Light256)617 case "16":618 theme = dupeTheme(tui.Default16)619 case "bw", "no":620 theme = nil620 theme = tui.NoColorTheme()621 default:622 fail := func() {623 errorExit("invalid color specification: " + str)624 }
923 unmodified lines