From e7ca237b072433e04e34a66ac165b05997ba1f9d Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 29 Oct 2020 01:27:08 +0900 Subject: [PATCH] Fix nil error on --color=bw Fix #2229 --- src/options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/options.go b/src/options.go index ab5ae27..797863c 100644 --- a/src/options.go +++ b/src/options.go @@ -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)