]> git.neil.brown.name Git - edlib.git/commit
lib-linefilter: always strip attributes from line before comparing.
authorNeilBrown <neil@brown.name>
Fri, 23 Jun 2023 02:17:22 +0000 (12:17 +1000)
committerNeilBrown <neil@brown.name>
Wed, 28 Jun 2023 07:51:41 +0000 (17:51 +1000)
commit322c724b77f794d98523c97c3fbe95f4e1d17d79
tree1b2686804541610858b629168c0dbae4e57357a5
parent0624d823c939ea6854595383a90d7b045c22358b
lib-linefilter: always strip attributes from line before comparing.

If the key is an attribute, tell the callback using ci->key=="attr"
rather than the magic of -num2 == -1, which can get set by other
doc:render-line functions.

When the key is a line from doc:render-line, properly strip all
attributes, both old and new style.

Signed-off-by: NeilBrown <neil@brown.name>
lib-linefilter.c