diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2020-01-23 14:01:41 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2020-01-23 14:36:12 +0100 |
| commit | 886a5ed603df862a26f0d6d78d6c8dd161623738 (patch) | |
| tree | 07dc9a5183eea871f23b3c26cf86b2e46f37bc4a /map.c | |
| parent | 79a3eb968a09bf1db54e0a024404d0436b7db689 (diff) | |
| download | vis-886a5ed603df862a26f0d6d78d6c8dd161623738.tar.gz vis-886a5ed603df862a26f0d6d78d6c8dd161623738.tar.xz | |
text: fix spurious regex anchor matches
The regex anchors ^ and $ must not match at the start/end of the search
range unless it is preceded/succeeded by a new line.
This is implemented at the text-motion layer by passing the appropriate
REG_NOT{B,E}OL flags to the search backend, meaning the caller can
influence the anchor behavior depending on the context. This is important
as for example in the command language the anchors apply to existing
selections, not line boundaries.
Diffstat (limited to 'map.c')
0 files changed, 0 insertions, 0 deletions
