Skip to content

Commit

Permalink
Fix regression. Existing tests work again.
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandr Andriienko <oandriie@redhat.com>
  • Loading branch information
AndrienkoAleksandr authored and parisk committed Jul 14, 2017
1 parent fefdfdc commit 232e73f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/InputHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ export class InputHandler implements IInputHandler {
case 1000: // vt200 mouse
case 1002: // button event mouse
case 1003: // any event mouse
this._terminal.buffer.x10Mouse = false;
this._terminal.x10Mouse = false;
this._terminal.vt200Mouse = false;
this._terminal.normalMouse = false;
this._terminal.mouseEvents = false;
Expand Down
2 changes: 1 addition & 1 deletion src/test/escape-sequences-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function formatError(in_, out_, expected) {
function terminalToString(term) {
var result = '';
var line_s = '';
for (var line = term.ybase; line < term.ybase + term.rows; line++) {
for (var line = term.buffer.ybase; line < term.buffer.ybase + term.rows; line++) {
line_s = '';
for (var cell=0; cell<term.cols; ++cell) {
line_s += term.buffer.lines.get(line)[cell][1];
Expand Down
6 changes: 2 additions & 4 deletions src/xterm.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,8 @@ function Terminal(options) {
this.surrogate_high = '';

// Create the terminal's buffers and set the current buffer
if (!this.buffers) {
this.buffers = new BufferSet(this);
this.buffer = this.buffers.active; // Convenience shortcut;
}
this.buffers = new BufferSet(this);
this.buffer = this.buffers.active; // Convenience shortcut;
this.buffers.on('activate', function (buffer) {
this._terminal.buffer = buffer;
});
Expand Down

0 comments on commit 232e73f

Please sign in to comment.