]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
Drop selection when the active buffer changes
authorDaniel Imms <daimms@microsoft.com>
Tue, 27 Jun 2017 17:13:16 +0000 (10:13 -0700)
committerDaniel Imms <daimms@microsoft.com>
Tue, 27 Jun 2017 17:13:16 +0000 (10:13 -0700)
Fixes #732

src/SelectionManager.ts

index b3316ae6cdad574ac79e867f3f64c491cf44de6a..eb9e2bb5e0e9a0989f38965bcddf44f2fea3c463 100644 (file)
@@ -178,6 +178,7 @@ export class SelectionManager extends EventEmitter {
    */
   public setBuffer(buffer: CircularList<any>): void {
     this._buffer = buffer;
+    this.clearSelection();
   }
 
   /**