The code is expecting there to be a .editorconfig setting for tab_width when indent_style = tab as the tab_width value is copied into indent_size. It seems strange to set up indentation in .editorconfig that relies on tabs but leave tab_width undefined.
The code is expecting there to be a .editorconfig setting for
tab_width
whenindent_style = tab
as thetab_width
value is copied intoindent_size
. It seems strange to set up indentation in .editorconfig that relies on tabs but leave tab_width undefined.Fixed with [51a8f2].
Added a check for when
indent_style = tab
and there is notab_width
to use the value ofprops["tabwidth"]
or "8" if not set.Added a catch and diagnostic for stoi failure in case there are other problems.
Related
Commit: [51a8f2]