Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ext.rifle: Fix passing flags from actions.py to rifle.py

  • Loading branch information...
commit 654a81cacb2c8cf02d32c911fc87bc8d62fae698 1 parent e8bbfe6
hut authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 ranger/core/actions.py
  2. +2 −2 ranger/ext/rifle.py
View
4 ranger/core/actions.py
@@ -293,8 +293,8 @@ def execute_file(self, files, **kw):
elif type(files) not in (list, tuple):
files = [files]
- flags = squash_flags(kw.get('flags', ''))
- if 'c' in flags:
+ flags = kw.get('flags', '')
+ if 'c' in squash_flags(flags):
files = [self.fm.env.cf]
self.signal_emit('execute.before', keywords=kw)
View
4 ranger/ext/rifle.py
@@ -249,10 +249,10 @@ def execute(self, files, number=0, label=None, flags=None, mimetype=None):
found_at_least_one = None
# Determine command
- for count, cmd, lbl, flags in self.list_commands(files, mimetype):
+ for count, cmd, lbl, flgs in self.list_commands(files, mimetype):
if label and label == lbl or not label and count == number:
cmd = self.hook_command_preprocessing(cmd)
- command = self._build_command(files, cmd, flags)
+ command = self._build_command(files, cmd, flags + flgs)
break
else:
found_at_least_one = True
Please sign in to comment.
Something went wrong with that request. Please try again.