about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-09-05 21:51:36 +0200
committertoonn <toonn@toonn.io>2021-09-05 21:51:36 +0200
commit46abf8c9fa439de921886a7aed2e4d2e8251b6fd (patch)
tree7ac2dbec301e1b61b71d4d4081b4f12c920c8daf
parent1a4dfdd46bc554d9391a136c85183918135e9066 (diff)
downloadranger-46abf8c9fa439de921886a7aed2e4d2e8251b6fd.tar.gz
commands: Do not call the _arg property
-rwxr-xr-xranger/config/commands.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index a8071331..07052687 100755
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -507,13 +507,13 @@ class setlocal_(set_):
         # We require quoting of paths with whitespace so we have to take care
         # not to match escaped quotes.
         self.path_re_dquoted = re.compile(
-            r'^set.+?\s+{arg}="(.*?[^\\])"'.format(arg=self._arg())
+            r'^set.+?\s+{arg}="(.*?[^\\])"'.format(arg=self._arg)
         )
         self.path_re_squoted = re.compile(
-            r"^set.+?\s+{arg}='(.*?[^\\])'".format(arg=self._arg())
+            r"^set.+?\s+{arg}='(.*?[^\\])'".format(arg=self._arg)
         )
         self.path_re_unquoted = re.compile(
-            r'^{arg}=(.+?)$'.format(arg=self._arg())
+            r'^{arg}=(.+?)$'.format(arg=self._arg)
         )
 
     def _re_shift(self, match):