Move tabStopWidth option callback into setOption

This commit is contained in:
Paris Kasidiaris
2017-01-20 16:19:19 +00:00
parent f4293a6dfa
commit 8cb46f2726
2 changed files with 1 additions and 1 deletions
-1
View File
@@ -37,7 +37,6 @@ optionElements.scrollback.addEventListener('change', function () {
});
optionElements.tabstopwidth.addEventListener('change', function () {
term.setOption('tabStopWidth', parseInt(optionElements.tabstopwidth.value));
term.setupStops();
});
createTerminal();
+1
View File
@@ -434,6 +434,7 @@ Terminal.prototype.setOption = function(key, value) {
this.element.classList.toggle(`xterm-cursor-style-underline`, value === 'underline');
this.element.classList.toggle(`xterm-cursor-style-bar`, value === 'bar');
break;
case 'tabStopWidth': this.setupStops(); break;
}
};