summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2020-10-29 01:27:08 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2020-10-29 01:27:08 +0900
commite7ca237b072433e04e34a66ac165b05997ba1f9d (patch)
treee101ffc1b0d121205a3d08232322f98eb0b67631
parenta7d3b72117a2fbd35e8ee51dfa1862b92f8b831c (diff)
Fix nil error on --color=bw
Fix #2229
-rw-r--r--src/options.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/options.go b/src/options.go
index ab5ae27a..797863cf 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)