Merge pull request #288 from Tyriar/278_sync_scrollbar_after_reset
Sync scroll bar after reset
This commit is contained in:
@@ -3207,6 +3207,7 @@ Terminal.prototype.reset = function() {
|
|||||||
Terminal.call(this, this.options);
|
Terminal.call(this, this.options);
|
||||||
this.customKeydownHandler = customKeydownHandler;
|
this.customKeydownHandler = customKeydownHandler;
|
||||||
this.refresh(0, this.rows - 1);
|
this.refresh(0, this.rows - 1);
|
||||||
|
this.viewport.syncScrollArea();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ describe('xterm.js', function() {
|
|||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
xterm = new Terminal();
|
xterm = new Terminal();
|
||||||
xterm.refresh = function(){};
|
xterm.refresh = function(){};
|
||||||
|
xterm.viewport = {
|
||||||
|
syncScrollArea: function(){}
|
||||||
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('getOption', function() {
|
describe('getOption', function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user