]> git.proxmox.com Git - mirror_xterm.js.git/commit
Resize both buffers on resize
authorDaniel Imms <daimms@microsoft.com>
Sun, 6 Aug 2017 01:59:42 +0000 (18:59 -0700)
committerDaniel Imms <daimms@microsoft.com>
Sun, 6 Aug 2017 01:59:44 +0000 (18:59 -0700)
commit3d20c2f266d4a64b4ff027145382d9852955a510
tree48ce4643b500f14d7dad7840f80e927358527381
parentf5ba386c01d6f4032c88a83812e530e10d5a7cb9
Resize both buffers on resize

This brings in proper support to resize both buffers (#510) and fixes an
exception that was caused by wrongfully not clearing the normal buffer when
resizing while the alt buffer is active.

There was an obscure bug in this that could have caused some great confusion
later on; When switching to the alt buffer, a hard terminal reset was performed
which tried to retain the buffers. However, because buffers was initialized in
the Terminal constructor to a new BufferSet, the Terminal.buffer convenience
pointer was pointing at a stale alt buffer which was the one actually being
used, not Terminal.buffers.alt.

Fixes #842
Fixes #510
src/Buffer.ts
src/BufferSet.ts
src/Interfaces.ts
src/xterm.js