Fixed when change widthInput value not parse correctly which cause tab indent problems

This commit is contained in:
Cheng-Han, Wu 2016-02-18 03:38:09 +08:00
parent b2b1be3dda
commit d97e435b3b
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ function setIndent() {
}
});
widthInput.on('change', function() {
var val = widthInput.val();
var val = parseInt(widthInput.val());
if (!val) val = editor.getOption('indentUnit');
if (val < 1) val = 1;
else if (val > 10) val = 10;