Reworked how the bracket insertion works, fixed multi cursor - closes #1