Fix nil error on --color=bw

Fix #2229
This commit is contained in:
Junegunn Choi 2020-10-29 01:27:08 +09:00
parent a7d3b72117
commit e7ca237b07
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -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)