Move filter before priority text changes, so filter doesn't match invisible text

This commit is contained in:
Ed Blackman
2009-03-14 13:39:27 -04:00
parent f8b2646b92
commit 7e04849a4f

View File

@@ -408,6 +408,7 @@ _list() {
s/^ /0/; s/^ /0/;
''' \ ''' \
| sort -f -k2 \ | sort -f -k2 \
| eval ${filter_command:-cat} \
| sed ''' | sed '''
/^[0-9]\{'$PADDING'\} x /! { /^[0-9]\{'$PADDING'\} x /! {
s/\(.*(A).*\)/'$PRI_A'\1 '$DEFAULT'/g; s/\(.*(A).*\)/'$PRI_A'\1 '$DEFAULT'/g;
@@ -416,7 +417,6 @@ _list() {
s/\(.*([D-Z]).*\)/'$PRI_X'\1 '$DEFAULT'/g; s/\(.*([D-Z]).*\)/'$PRI_X'\1 '$DEFAULT'/g;
} }
''' \ ''' \
| eval ${filter_command:-cat} \
| sort -f -k2 \ | sort -f -k2 \
| sed ''' | sed '''
s/'${HIDE_PRIORITY_SUBSTITUTION:-^}'//g s/'${HIDE_PRIORITY_SUBSTITUTION:-^}'//g