Fix #488: Implement configurable tab width

This commit is contained in:
Paris Kasidiaris
2017-01-20 16:18:19 +00:00
parent 1c759f1d6f
commit f4293a6dfa
3 changed files with 17 additions and 7 deletions
+3 -2
View File
@@ -360,7 +360,8 @@ Terminal.defaults = {
screenKeys: false,
debug: false,
cancelEvents: false,
disableStdin: false
disableStdin: false,
tabStopWidth: 8
// programFeatures: false,
// focusKeys: false,
};
@@ -2118,7 +2119,7 @@ Terminal.prototype.setupStops = function(i) {
i = 0;
}
for (; i < this.cols; i += 8) {
for (; i < this.cols; i += this.getOption('tabStopWidth')) {
this.tabs[i] = true;
}
};