summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorWojciech Siewierski <wojciech.siewierski@onet.pl>2018-01-04 00:07:37 +0100
committerWojciech Siewierski <wojciech.siewierski@onet.pl>2018-01-04 00:08:51 +0100
commit2e93ab65a1e71ebca8c44e08312667401b4ffbfa (patch)
treeffde80ee577e0218716c269dfb35935b8c065485
parent82cc5eaefcfded380254382ac2193b6fd76deb68 (diff)
downloadranger-2e93ab65a1e71ebca8c44e08312667401b4ffbfa.tar.gz
config.commands: Coding style fix
-rwxr-xr-xranger/config/commands.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index 841ac6f4..7d690b4a 100755
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -446,16 +446,18 @@ class set_(Command):
                           if setting.startswith(name))
         if not value:
             value_completers = {
-                "colorscheme": lambda:
+                "colorscheme":
                 # Cycle through colorschemes when name, but no value is specified
-                sorted(self.firstpart + colorscheme for colorscheme
-                       in get_all_colorschemes(self.fm)),
+                lambda: sorted(self.firstpart + colorscheme for colorscheme
+                               in get_all_colorschemes(self.fm)),
 
-                "column_ratios": lambda:
-                self.firstpart + ",".join(map(str, settings[name])),
+                "column_ratios":
+                lambda: self.firstpart + ",".join(map(str, settings[name])),
             }
+
             def default_value_completer():
                 return self.firstpart + str(settings[name])
+
             return value_completers.get(name, default_value_completer)()
         if bool in settings.types_of(name):
             if 'true'.startswith(value.lower()):