fix the missing break in JumpToMatchingBrace (#1960)

In JumpToMatchingBrace, the loop should stop immediately after finding the matching bracket.
It causes multiple jumps in certain situations:
`(I  [  ]{  }) => (  I[  ]{  })`
This commit is contained in:
worldmaker
2020-12-28 07:38:16 +08:00
committed by GitHub
parent 3321e844fc
commit 06a5f1a62d

View File

@@ -1195,6 +1195,7 @@ func (h *BufPane) JumpToMatchingBrace() bool {
} else {
h.Cursor.GotoLoc(matchingBrace.Move(1, h.Buf))
}
break
} else {
return false
}