[closebrackets addon] Fix regression introducedy multi-cursor support

Closes #2205