vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 98f2b02a67f8cb55cbd222d4407288e211339985 parent 1edfe6f7c04f85407b6f3474a4e245a5f6e67d4c Author: Marc André Tanner <mat@brain-dump.org> Date: Thu, 29 Sep 2016 07:26:45 +0200 vis: fix % for angle brackets Diffstat:
| M | vis-motions.c | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/vis-motions.c b/vis-motions.c @@ -186,7 +186,7 @@ static size_t window_nop(Vis *vis, Win *win, size_t pos) { } static size_t bracket_match(Text *txt, size_t pos) { - size_t hit = text_bracket_match_symbol(txt, pos, "(){}[]"); + size_t hit = text_bracket_match_symbol(txt, pos, "(){}[]<>"); if (hit != pos) return hit; char current; @@ -199,6 +199,8 @@ static size_t bracket_match(Text *txt, size_t pos) { case '}': case '[': case ']': + case '<': + case '>': return it.pos; } text_iterator_byte_next(&it, NULL);