Fix nil error on --color=bw

Fix #2229
pull/2233/head
Junegunn Choi 4 years ago
parent a7d3b72117
commit e7ca237b07
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -617,7 +617,7 @@ func parseTheme(defaultTheme *tui.ColorTheme, str string) *tui.ColorTheme {
case "16":
theme = dupeTheme(tui.Default16)
case "bw", "no":
theme = nil
theme = tui.NoColorTheme()
default:
fail := func() {
errorExit("invalid color specification: " + str)

Loading…
Cancel
Save