Fix #488: Implement configurable tab width
This commit is contained in:
+3
-2
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user