From 227b9d2c0a1fa370cf4e96dfc78876d7f2e30d98 Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Fri, 23 Sep 2011 16:27:30 +0200 Subject: [PATCH] BUG: Pattern "(X) " anywhere hidden with -P. The regular expression HIDE_PRIORITY_SUBSTITUTION is not anchored, so strings that look like a priority but are not at the beginning are filtered, too. Anchoring the regexp in the step after the highlighting has been applied is problematic due to the prepended dynamic priority highlighting string, and it also cannot be done before that because highlighting needs the information. Therefore, the filtering is moved into the AWK highlighting itself. --- tests/t1300-ls.sh | 24 ++++++++++++------------ todo.sh | 6 ++++-- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/tests/t1300-ls.sh b/tests/t1300-ls.sh index a374c5b..7a18fde 100755 --- a/tests/t1300-ls.sh +++ b/tests/t1300-ls.sh @@ -142,7 +142,7 @@ cat > todo.txt < todo.txt <