commit | 64aa8757a838960e8c2b028891be217ee5246c05 | [log] [tgz] |
---|---|---|
author | Benno Schulenberg <bensberg@justemail.net> | Thu Jan 26 16:24:18 2017 +0100 |
committer | Benno Schulenberg <bensberg@justemail.net> | Thu Jan 26 16:24:18 2017 +0100 |
tree | cd3e627f8dfc3aa1c92f745ded821e651b48e6ae | |
parent | 4ed359170348f14b7468f318766611b03d991df9 [diff] |
search: make the \b and \B anchors work correctly in both directions That is: remove the special treatment of BOW anchors, and instead make regexes match against the whole line instead of against an artificially shortened one, because the latter method creates ghost matches: matches at the starting point of the search that aren't really matches when seen in the context of the whole line. This fixes https://savannah.gnu.org/bugs/?50030.