mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-07-25 09:11:57 -07:00
printer: trim before applying max column windowing
Previously, we were applying the -M/--max-columns flag *before* triming prefix ASCII whitespace. But this doesn't make a whole lot of sense. We should be trimming first, but the result of trimming is ultimately what we'll be printing and that's what -M/--max-columns should be applied to. Fixes #2458
This commit is contained in:
@@ -77,6 +77,8 @@ Bug fixes:
|
||||
Make `-p/--pretty` override flags like `--no-line-number`.
|
||||
* [BUG #2392](https://github.com/BurntSushi/ripgrep/issues/2392):
|
||||
Improve global git config parsing of the `excludesFile` field.
|
||||
* [BUG #2458](https://github.com/BurntSushi/ripgrep/pull/2458):
|
||||
Make `--trim` run before `-M/--max-columns` takes effect.
|
||||
* [BUG #2479](https://github.com/BurntSushi/ripgrep/issues/2479):
|
||||
Add documentation about `.ignore`/`.rgignore` files in parent directories.
|
||||
* [BUG #2480](https://github.com/BurntSushi/ripgrep/issues/2480):
|
||||
|
Reference in New Issue
Block a user