From 5ea5f914bf10f8718a8d2966a01bd3d07b752e4d Mon Sep 17 00:00:00 2001 From: EdOverflow Date: Sat, 13 Jul 2019 17:54:59 +0200 Subject: [PATCH] Escape plus symbol in hldiff filter. I was getting errors when using the hldiff filter with aerc because the plus symbol on line 28 wasn't escaped. This commit escapes the plus symbol in the regex on line 28. --- filters/hldiff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filters/hldiff b/filters/hldiff index b672e21..a17f17b 100755 --- a/filters/hldiff +++ b/filters/hldiff @@ -25,7 +25,7 @@ BEGIN { } else { if ($0 ~ /^-/) { print red $0 reset - } else if ($0 ~ /^+/) { + } else if ($0 ~ /^\+/) { print green $0 reset } else if ($0 ~ /^ /) { print $0