From 757abc02702222bef853de873f92b410b5a7d31a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sun, 8 Nov 2015 13:06:04 +0100 Subject: view: do not highlight matching symbols if selection is active --- view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view.c') diff --git a/view.c b/view.c index cc60f86..2335a2a 100644 --- 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)) { -- cgit v1.2.3