diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2018-02-19 16:55:22 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2018-02-19 18:14:58 +0100 |
| commit | cbbf9286124ce60097177050c6ebff9801b34909 (patch) | |
| tree | cd242c715e6e5a5e57aac3e5536581872e028a11 /lua/lexers/diff.lua | |
| parent | 08c98fb36aa6fc7448b66ade6589c5a1a07c4b98 (diff) | |
| download | vis-cbbf9286124ce60097177050c6ebff9801b34909.tar.gz vis-cbbf9286124ce60097177050c6ebff9801b34909.tar.xz | |
sam: fix g/^$/
With POSIX ERE the pattern ^$ matches strings ending with a new
line because an empty match is reported after the trailing newline
at the very end of the input.
This is undesirable for use cases like
x g/^$/ d
which is supposed to delete all empty lines of a file.
As a fix we disregard empty matches at the end of the given range.
Diffstat (limited to 'lua/lexers/diff.lua')
0 files changed, 0 insertions, 0 deletions
