Right, formatNumber
only took a number, and the code assumed it only depended on the number, so closing over the view like that wouldn’t work. @codemirror/gutter
0.17.2 passes the editor state to formatNumber
and should handle this correctly.
Right, formatNumber
only took a number, and the code assumed it only depended on the number, so closing over the view like that wouldn’t work. @codemirror/gutter
0.17.2 passes the editor state to formatNumber
and should handle this correctly.