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.
This commit is contained in:
EdOverflow 2019-07-13 17:54:59 +02:00 committed by Drew DeVault
parent dba16157de
commit 5ea5f914bf

View file

@ -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