pty-manager 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -412,9 +412,9 @@ var PTYSession = class _PTYSession extends EventEmitter {
412
412
  this.clearStallTimer();
413
413
  return;
414
414
  }
415
- const tail = this.outputBuffer.slice(-500);
416
- const stripped = this.stripAnsiForStall(tail).trim();
417
- const hash = this.simpleHash(stripped);
415
+ const stripped = this.stripAnsiForStall(this.outputBuffer).trim();
416
+ const tail = stripped.slice(-500);
417
+ const hash = this.simpleHash(tail);
418
418
  if (hash === this._lastContentHash) {
419
419
  return;
420
420
  }