about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2021-07-19 23:59:19 -0400
committerZach DeCook <zachdecook@librem.one>2021-07-19 23:59:19 -0400
commit9f24198646ed938e5b47b0b0fd880ed4dbf9c7e4 (patch)
treea16e6183f124614d9ef11f1ae2376c6ede68c33e
parent1e29bb4ad3b36bef238c156ffa46b7759fc2e190 (diff)
downloadranger-9f24198646ed938e5b47b0b0fd880ed4dbf9c7e4.tar.gz
grep command: fix to work with busybox grep
-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 484dc0ad..833430c6 100755
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -1754,7 +1754,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')