diff options
author | hut <hut@lavabit.com> | 2010-02-16 13:52:04 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-02-16 15:56:37 +0100 |
commit | 2112f8c441916e783cb3a40ff940beb5ef87362f (patch) | |
tree | 2c26b21bec4c6c3161f17c326d6cca4aa9143c74 /ranger | |
parent | 34a60763e79546e0f84e30fbcc430632f3dbb39e (diff) | |
download | ranger-2112f8c441916e783cb3a40ff940beb5ef87362f.tar.gz |
commands: improved style
Diffstat (limited to 'ranger')
-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') |