Skip to content

Commit afe28bd

Browse files
committed
Don't use indent size of 'tab'.
1 parent 6580c22 commit afe28bd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

options.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,13 @@ function set_file_editorconfig_opts(file, config) {
8484
const eConfigs = editorconfig.parseSync(file);
8585
if (eConfigs.indent_style === 'tab') {
8686
config.indent_with_tabs = true;
87+
config.indent_char = '\t';
8788
} else if (eConfigs.indent_style === 'space') {
8889
config.indent_with_tabs = false;
8990
config.indent_char = ' ';
9091
}
9192

92-
if (eConfigs.indent_size) {
93+
if (eConfigs.indent_size && eConfigs.indent_size !== 'tab') {
9394
config.indent_size = eConfigs.indent_size;
9495
}
9596

0 commit comments

Comments
 (0)