aboutsummaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-04-13 17:20:18 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-04-13 17:20:18 +0200
commit1a158268c7693b00bf43c7e81034816d8d00358c (patch)
treee3fc48430d5e62efaa1ebeff52532bd4a2662e66 /buffer.c
parent6c2b9033cfb1a82275871b2800c5ef1e4cf877a5 (diff)
downloadvis-1a158268c7693b00bf43c7e81034816d8d00358c.tar.gz
vis-1a158268c7693b00bf43c7e81034816d8d00358c.tar.xz
sam: improve ^ matching start of line
There are some nasty differences between the meaning of ^ in Plan 9's regexp library and POSIX when using REG_NEWLINE. The former only matches at the beginning of a line wheras the latter matches the zero-length string immediately after a newline character \n. As a result this also matches after the very last newline at the end of the file. This is undesired behavior for a command like :x/^/c/#/ Hence we try to filter out this last match. Close #264
Diffstat (limited to 'buffer.c')
0 files changed, 0 insertions, 0 deletions