Merge pull request #288 from Tyriar/278_sync_scrollbar_after_reset

Sync scroll bar after reset
This commit is contained in:
Daniel Imms
2016-09-25 02:44:56 -07:00
committed by GitHub
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -3207,6 +3207,7 @@ Terminal.prototype.reset = function() {
Terminal.call(this, this.options);
this.customKeydownHandler = customKeydownHandler;
this.refresh(0, this.rows - 1);
this.viewport.syncScrollArea();
};
+3
View File
@@ -8,6 +8,9 @@ describe('xterm.js', function() {
beforeEach(function () {
xterm = new Terminal();
xterm.refresh = function(){};
xterm.viewport = {
syncScrollArea: function(){}
};
});
describe('getOption', function() {