From cb631d532a3e82e2c1e8833c4cd13facf5bc7465 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 19 Feb 2018 10:35:35 +0100 Subject: [PATCH] Fix getting global value from configutils.Values --- qutebrowser/config/configutils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qutebrowser/config/configutils.py b/qutebrowser/config/configutils.py index 9234a5ece..6c19ebab0 100644 --- a/qutebrowser/config/configutils.py +++ b/qutebrowser/config/configutils.py @@ -124,8 +124,7 @@ class Values: def _get_fallback(self): """Get the fallback global/default value.""" - if self._values: - scoped = self._values[-1] + for scoped in self._values: if scoped.pattern is None: # It's possible that the setting is only customized from the # default for a given URL.