summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/config/commands.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index 2c5babba..953e2cc3 100644
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -1276,8 +1276,7 @@ class flat(Command):
             level = self.rest(1)
             level = int(level)
         except ValueError:
-            self.fm.notify("Need an integer number (-1, 0, 1, ...)", bad=True)
-            return
+            level = self.quantifier
         self.fm.thisdir.unload()
         self.fm.thisdir.flat = level
         self.fm.thisdir.load_content()