#51 wip
[fanfix.git] / src / jexer / TTerminalWidget.java
index 8c0082c08d8af431161a324c1a10316840900747..db405cfd72e0b13640f1b9bcded25ae03adf1c5d 100644 (file)
@@ -229,6 +229,9 @@ public class TTerminalWidget extends TScrollableWidget
         super(parent, x, y, width, height);
 
         this.closeAction = closeAction;
+        if (closeAction != null) {
+            this.closeAction.data = this;
+        }
 
         String [] fullCommand;
 
@@ -307,6 +310,9 @@ public class TTerminalWidget extends TScrollableWidget
         super(parent, x, y, width, height);
 
         this.closeAction = closeAction;
+        if (closeAction != null) {
+            this.closeAction.data = this;
+        }
 
         if (System.getProperty("jexer.TTerminal.shell") != null) {
             String shell = System.getProperty("jexer.TTerminal.shell");