fix an ancient bug with setting tabSize option to a string
This commit is contained in:
parent
d660e6bd72
commit
761f6a5085
|
@ -336,7 +336,8 @@ function acmeEventListener(event) {
|
||||||
let value = el.type === 'checkbox' ? el.checked : el.value;
|
let value = el.type === 'checkbox' ? el.checked : el.value;
|
||||||
switch (option) {
|
switch (option) {
|
||||||
case 'tabSize':
|
case 'tabSize':
|
||||||
CodeMirror.setOption('indentUnit', Number(value));
|
value = Number(value);
|
||||||
|
CodeMirror.setOption('indentUnit', value);
|
||||||
break;
|
break;
|
||||||
case 'theme': {
|
case 'theme': {
|
||||||
const themeLink = $('#cm-theme');
|
const themeLink = $('#cm-theme');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user