Exception when formatting a selection at the start of the file.
VorpalBlade opened this issue · comments
Using R2019B, I get the following when using the "format selection" functionality, if the selection starts anywhere in the first line of the editor window:
Undefined function or variable 'lineBeforePosition'.
Error in MBeautify.formatEditorSelection (line 137)
expandedSelection = [lineBeforePosition(1), 1, expandedSelection(3), Inf];
137 expandedSelection = [lineBeforePosition(1), 1, expandedSelection(3), Inf];
Hi,
with the referenced commit the problem should be solved.