diff options
author | Zach DeCook <zachdecook@librem.one> | 2021-07-19 23:59:19 -0400 |
---|---|---|
committer | Zach DeCook <zachdecook@librem.one> | 2021-07-19 23:59:19 -0400 |
commit | 9f24198646ed938e5b47b0b0fd880ed4dbf9c7e4 (patch) | |
tree | a16e6183f124614d9ef11f1ae2376c6ede68c33e | |
parent | 1e29bb4ad3b36bef238c156ffa46b7759fc2e190 (diff) | |
download | ranger-9f24198646ed938e5b47b0b0fd880ed4dbf9c7e4.tar.gz |
grep command: fix to work with busybox grep
-rwxr-xr-x | ranger/config/commands.py | 2 |
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') |