summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTony Cebzanov <tonycpsu@gmail.com>2014-11-11 18:06:13 -0500
committerTony Cebzanov <tonycpsu@gmail.com>2014-11-11 18:06:13 -0500
commit5c97716aa0e260ec2b0cd6cffee1ea74fd9ff8f8 (patch)
tree1ad61994f4a2e845279a66bbdb3660c86ff18fbc
parent19cf6f2b13df00080233a5a003641c3b47bdc46e (diff)
downloadranger-5c97716aa0e260ec2b0cd6cffee1ea74fd9ff8f8.tar.gz
Get default argument for flat command from quantifier.
-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()