summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-02-16 13:52:04 +0100
committerhut <hut@lavabit.com>2010-02-16 15:56:37 +0100
commit2112f8c441916e783cb3a40ff940beb5ef87362f (patch)
tree2c26b21bec4c6c3161f17c326d6cca4aa9143c74
parent34a60763e79546e0f84e30fbcc430632f3dbb39e (diff)
downloadranger-2112f8c441916e783cb3a40ff940beb5ef87362f.tar.gz
commands: improved style
-rw-r--r--ranger/commands.py2
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')