about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2019-05-05 21:50:38 +0200
committertoonn <toonn@toonn.io>2019-05-05 21:50:38 +0200
commit5ae67755cfa84177613b48a698b4ed58e9751fc4 (patch)
treeb1a1b6598ebc87a0ea8565f3419b102c2ff2635a /ranger
parentbc47bc24fe45aaa4b8f3502a5d11187962692bd1 (diff)
parent12dc544cd6d435c3846d4189c165b99345cffaa9 (diff)
downloadranger-5ae67755cfa84177613b48a698b4ed58e9751fc4.tar.gz
Merge branch 'chmod_000'
Diffstat (limited to 'ranger')
-rwxr-xr-xranger/config/commands.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index 36a6070e..cb2207ce 100755
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -1028,8 +1028,9 @@ class chmod(Command):
     def execute(self):
         mode_str = self.rest(1)
         if not mode_str:
-            if not self.quantifier:
-                self.fm.notify("Syntax: chmod <octal number>", bad=True)
+            if self.quantifier is None:
+                self.fm.notify("Syntax: chmod <octal number> "
+                               "or specify a quantifier", bad=True)
                 return
             mode_str = str(self.quantifier)