]> git.lizzy.rs Git - micro.git/commit
Fix weird behavior of JumpToMatchingBrace in some ill cases (#1966)
authorworldmaker <worldmaker18349276@gmail.com>
Sun, 24 Jul 2022 21:06:59 +0000 (05:06 +0800)
committerGitHub <noreply@github.com>
Sun, 24 Jul 2022 21:06:59 +0000 (14:06 -0700)
commit7efec130dcd46e44383e2d4bef60a7d82161bfa8
treef3624c31729cae5246ba12db6dc8f6c26ab3cc74
parentcf98b7f8245e4ca28518d31147e347d35607d5d4
Fix weird behavior of JumpToMatchingBrace in some ill cases (#1966)

It should not return false immediately when no matching brace is found. This makes the jump fails in certain case: `[  )I]` =/=> `[I  )]`.
When there is no brace near the cursor, the last statement is also executed. This may cause problems when chaining commands.
internal/action/actions.go