about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-07-22 14:03:54 +0200
committertoonn <toonn@toonn.io>2021-07-22 14:03:54 +0200
commitf1f3f1765f6e97b4e1af80da8f237bf7f1ad895f (patch)
tree6fec4e05fdd3c15748dd9697d299a2d2813d9f58
parente9db2a71ddde38c0ead6c98973ef5dc7bc0a3b09 (diff)
parent9f24198646ed938e5b47b0b0fd880ed4dbf9c7e4 (diff)
downloadranger-f1f3f1765f6e97b4e1af80da8f237bf7f1ad895f.tar.gz
Merge remote-tracking branch 'earboxer/fixgrep'
-rwxr-xr-xranger/config/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index 7978111b..0b61b6e4 100755
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -1756,7 +1756,7 @@ class grep(Command):
 
     def execute(self):
         if self.rest(1):
-            action = ['grep', '--line-number']
+            action = ['grep', '-n']
             action.extend(['-e', self.rest(1), '-r'])
             action.extend(f.path for f in self.fm.thistab.get_selection())
             self.fm.execute_command(action, flags='p')