about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorEdOverflow <contact@edoverflow.com>2019-07-13 17:54:59 +0200
committerDrew DeVault <sir@cmpwn.com>2019-07-13 12:28:49 -0400
commit5ea5f914bf10f8718a8d2966a01bd3d07b752e4d (patch)
tree9fd1c09713f6d144c1a28b4de72455dd0b408319
parentdba16157de96cab2736ca8fbddc1a19fa3667a3f (diff)
downloadaerc-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-xfilters/hldiff2
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