diff options
-rw-r--r-- | ranger/commands.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/commands.py b/ranger/commands.py index be2665fa..a6fc77fb 100644 --- a/ranger/commands.py +++ b/ranger/commands.py @@ -397,7 +397,7 @@ class grep(Command): if line.rest(1): action = ['grep', '--color=always', '--line-number'] action.extend(['-e', line.rest(1), '-r']) - action.extend(map(lambda x: x.path, self.fm.env.get_selection())) + action.extend(f.path for f in self.fm.env.get_selection()) self.fm.execute_command(action, flags='p') |