vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 64964fed3b316992b8a504e15cfaa6ac3c238a4b
parent 0ff92fecca96c2e53d484f53c6f4048d13342790
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Wed,  9 Mar 2016 18:36:03 +0100

vis: let /^pattern match at the start of the line

Diffstat:
Mvis-motions.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vis-motions.c b/vis-motions.c @@ -245,7 +245,7 @@ bool vis_motion(Vis *vis, enum VisMotion motion, ...) { case VIS_MOVE_SEARCH_BACKWARD: { const char *pattern = va_arg(ap, char*); - if (text_regex_compile(vis->search_pattern, pattern, REG_EXTENDED)) { + if (text_regex_compile(vis->search_pattern, pattern, REG_EXTENDED|REG_NEWLINE)) { vis_cancel(vis); goto err; }