From 805d6ccaf78cebc6edcf3f2c03a33597331166c2 Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Sun, 7 Jan 2018 20:58:01 -0500 Subject: [PATCH] Don't brace highlight with selection --- cmd/micro/cellview.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/micro/cellview.go b/cmd/micro/cellview.go index 06c5a09d..b0f80502 100644 --- a/cmd/micro/cellview.go +++ b/cmd/micro/cellview.go @@ -149,7 +149,7 @@ func (c *CellView) Draw(buf *Buffer, top, height, left, width int) { if viewCol >= 0 { st := curStyle - if colN == matchingBrace.X && lineN == matchingBrace.Y { + if colN == matchingBrace.X && lineN == matchingBrace.Y && !buf.Cursor.HasSelection() { st = curStyle.Reverse(true) } c.lines[viewLine][viewCol] = &Char{Loc{viewCol, viewLine}, Loc{colN, lineN}, char, char, st, 1}