diff options
author | Tony Cebzanov <tonycpsu@gmail.com> | 2014-11-11 18:06:13 -0500 |
---|---|---|
committer | Tony Cebzanov <tonycpsu@gmail.com> | 2014-11-11 18:06:13 -0500 |
commit | 5c97716aa0e260ec2b0cd6cffee1ea74fd9ff8f8 (patch) | |
tree | 1ad61994f4a2e845279a66bbdb3660c86ff18fbc /ranger | |
parent | 19cf6f2b13df00080233a5a003641c3b47bdc46e (diff) | |
download | ranger-5c97716aa0e260ec2b0cd6cffee1ea74fd9ff8f8.tar.gz |
Get default argument for flat command from quantifier.
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/config/commands.py | 3 |
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() |