]> git.lizzy.rs Git - micro.git/commit
fix the missing break in JumpToMatchingBrace (#1960)
authorworldmaker <worldmaker18349276@gmail.com>
Sun, 27 Dec 2020 23:38:16 +0000 (07:38 +0800)
committerGitHub <noreply@github.com>
Sun, 27 Dec 2020 23:38:16 +0000 (18:38 -0500)
commit06a5f1a62d1ae5f6aac86591c3cbdcbd64d6aab1
treebb710c967b94ecd30cb7d72e5cabe0a3eb875c63
parent3321e844fcb44ad7acfa813e81c1d3501750886e
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[  ]{  })`
internal/action/actions.go