Commit 18a632d
committed
Make findMatchingBracket swap between start and end brackets.
matchBracket returns an array containing start and end ranges for
brackets. Previously, findMatchingBracket (corresponding to vim's %
motion) would always jump to the end bracket. Fix it to jump to the
bracket whose range does not contain the current cursor position.1 parent b1c31bf commit 18a632d
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
969 | 969 | | |
970 | 970 | | |
971 | 971 | | |
972 | | - | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
973 | 977 | | |
974 | 978 | | |
975 | 979 | | |
| |||
0 commit comments