Skip to content

[Vimode] Ensure the % command (go to matching bracket) always works

Jan Paul Batrina requested to merge work/vimode-fix-match-bracket into master

For e.g. the text {|} (where | is the cursor), m_bmStart is equal to [ (0, 0) -> (0, 1) ] and the closing bracket is in (0, 1). Since m_bmStart->toRange().contains(m_cursor) is checked first, the current bracket is incorrectly set to the opening bracket {.

Mainly the vimode's % command (go to matching bracket) is affected. kate-goto-matching-bracket

Edited by Jan Paul Batrina

Merge request reports

Loading