From d8302803244aa34b7e0404e83639d3aad7c69f19 Mon Sep 17 00:00:00 2001 From: MINH Date: Wed, 2 Oct 2024 07:47:46 +0700 Subject: [PATCH] Revert "Shorten code" This reverts commit bcb10a1eaf4ab6c8aaeeb33fc2fc765b21eebfce. --- lib/core/options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/options.py b/lib/core/options.py index 1fa911bb8..822b36228 100755 --- a/lib/core/options.py +++ b/lib/core/options.py @@ -353,7 +353,7 @@ def parse_config(opt): # View opt.full_url = opt.full_url or config.safe_getboolean("view", "full-url") - opt.color = opt.color and config.safe_getboolean("view", "color", True) + opt.color = opt.color if opt.color is False else config.safe_getboolean("view", "color", True) opt.quiet = opt.quiet or config.safe_getboolean("view", "quiet-mode") opt.redirects_history = opt.redirects_history or config.safe_getboolean( "view", "show-redirects-history"