From 12dd455ee9aa731acfeb0d2dfed568a0103cae73 Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Sun, 30 May 2021 11:13:27 -0400 Subject: printer: fix \r\n line terminator handling This fixes a bug where it was assumed that 'is_suffix' when CRLF handling was enabled mean that '\r\n' was present. But that's not the case, and it is intentional that 'is_suffix' only looks for '\n'. (Which is why #1803 wasn't taken, which tries to fix this by changing 'is_suffix'.) Fixes #1765, Closes #1803 --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index e322d4d5..19994d23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -47,6 +47,8 @@ Bug fixes: Clarify that CLI invocation must always be valid, regardless of config file. * [BUG #1741](https://github.com/BurntSushi/ripgrep/issues/1741): Fix stdin detection when using PowerShell in UNIX environments. +* [BUG #1765](https://github.com/BurntSushi/ripgrep/issues/1765): + Fix panic when `--crlf` is used in some cases. * [BUG #1816](https://github.com/BurntSushi/ripgrep/issues/1816): Add documentation for glob alternate syntax, e.g., `{a,b,..}`. * [BUG #1847](https://github.com/BurntSushi/ripgrep/issues/1847): -- cgit v1.2.3