update roadmap
[fanfix.git] / src / jexer / TTerminalWindow.java
index 58e60e567c15387ffd82379f696af8e1f303ff5a..90a95ae132abdbd5360a06c535f57b0fac2965ef 100644 (file)
@@ -244,7 +244,12 @@ public class TTerminalWindow extends TWindow {
      * Handle window close.
      */
     @Override public void onClose() {
-        emulator.close();
+        if (shell != null) {
+            shell.destroy();
+            shell = null;
+        } else {
+            emulator.close();
+        }
     }
 
     /**