summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/container/settings.py2
-rw-r--r--ranger/gui/widgets/view_base.py10
2 files changed, 7 insertions, 5 deletions
diff --git a/ranger/container/settings.py b/ranger/container/settings.py
index 8b7364a2..9f54f24d 100644
--- a/ranger/container/settings.py
+++ b/ranger/container/settings.py
@@ -45,7 +45,7 @@ ALLOWED_SETTINGS = {
     'freeze_files': bool,
     'global_inode_type_filter': str,
     'hidden_filter': str,
-    'hint_collapse_threshold' : int,
+    'hint_collapse_threshold': int,
     'hostname_in_titlebar': bool,
     'idle_delay': int,
     'iterm2_font_width': int,
diff --git a/ranger/gui/widgets/view_base.py b/ranger/gui/widgets/view_base.py
index 0878ab0f..c87bdede 100644
--- a/ranger/gui/widgets/view_base.py
+++ b/ranger/gui/widgets/view_base.py
@@ -154,10 +154,12 @@ class ViewBase(Widget, DisplayableContainer):  # pylint: disable=too-many-instan
             if len(hints) > self.fm.settings.hint_collapse_threshold:
                 def first_key_in_group(group):
                     return group[0][0][0]
-                grouped_hints = [[(first_key_in_group(hint_group), "...")]
-                               if len(hint_group) > 1
-                               else hint_group
-                               for hint_group in grouped_hints]
+                grouped_hints = [
+                    [(first_key_in_group(hint_group), "...")]
+                    if len(hint_group) > 1
+                    else hint_group
+                    for hint_group in grouped_hints
+                ]
 
             # Sort by the first action in group.
             grouped_hints = sorted(grouped_hints, key=lambda g: g[0][1])