vis

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

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

commit 27acb355aa4518c780d870fa63abf58c173b7941
parent 75924042986fab6648ae1407c65c8fbc035a2ed7
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Sun,  8 Nov 2015 13:06:04 +0100

view: do not highlight matching symbols if selection is active

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

diff --git a/view.c b/view.c @@ -417,7 +417,7 @@ void view_draw(View *view) { size_t pos = view_cursors_pos(c); if (view_coord_get(view, pos, &c->line, &c->row, &c->col)) { c->line->cells[c->col].cursor = true; - if (view->ui) { + if (view->ui && !c->sel) { Line *line_match; int col_match; size_t pos_match = text_bracket_match_except(view->text, pos, "<>"); if (pos != pos_match && view_coord_get(view, pos_match, &line_match, NULL, &col_match)) {