If I have both a changeFilter returning [0, 0] and the bracketMatching plugin, if I try to type an open bracket at the end of the document, I get:
Uncaught RangeError: Position 73 is out of range for changeset of length 72
If I change the changeFilter to return ‘true’ I have no issue.
marijn
June 13, 2022, 9:44am
2
That was a bug in the way change filters are implemented that caused an effect added by the bracket-closing extensions to be mapped in an invalid way. This patch should help.
committed 09:42AM - 13 Jun 22 UTC
FIX: Fix a problem that caused effects' `map` methods to be called with an incor… rect
change set when filtering changes.
See https://discuss.codemirror.net/t/changefilter-bracketmatching/4524
1 Like