diff options
author | EdOverflow <contact@edoverflow.com> | 2019-07-13 17:54:59 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-07-13 12:28:49 -0400 |
commit | 5ea5f914bf10f8718a8d2966a01bd3d07b752e4d (patch) | |
tree | 9fd1c09713f6d144c1a28b4de72455dd0b408319 | |
parent | dba16157de96cab2736ca8fbddc1a19fa3667a3f (diff) | |
download | aerc-5ea5f914bf10f8718a8d2966a01bd3d07b752e4d.tar.gz |
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.
-rwxr-xr-x | filters/hldiff | 2 |
1 files changed, 1 insertions, 1 deletions
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 |