mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Move tabStopWidth option callback into setOption
This commit is contained in:
@@ -37,7 +37,6 @@ optionElements.scrollback.addEventListener('change', function () {
|
||||
});
|
||||
optionElements.tabstopwidth.addEventListener('change', function () {
|
||||
term.setOption('tabStopWidth', parseInt(optionElements.tabstopwidth.value));
|
||||
term.setupStops();
|
||||
});
|
||||
|
||||
createTerminal();
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user