diff options
author | hut <hut@lavabit.com> | 2013-02-18 00:24:56 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-02-18 00:24:56 +0100 |
commit | e0a24ff235dc024c9b1d57eb648082da4166d9f8 (patch) | |
tree | 7a283259900ce26254c2fc735a0d928666892a85 | |
parent | fae5dba39993fcbf56b7dc6b90403f6328e23035 (diff) | |
download | ranger-e0a24ff235dc024c9b1d57eb648082da4166d9f8.tar.gz |
config/commands: remove "--color=always" from :grep
this avoids garbled output for a pager that doesn't pass through ansi codes to the terminal
-rw-r--r-- | 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 5f6c6b2b..7c6a7680 100644 --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -1142,7 +1142,7 @@ class grep(Command): def execute(self): if self.rest(1): - action = ['grep', '--color=always', '--line-number'] + action = ['grep', '--line-number'] 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') |