git://git.nikiroo.be
/
nikiroo-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
merge
[nikiroo-utils.git]
/
src
/
jexer
/
TTerminalWindow.java
diff --git
a/src/jexer/TTerminalWindow.java
b/src/jexer/TTerminalWindow.java
index 336c3ff8db7cd19c2a6761f98469cc869f0b6b78..010cc4993eaa139f5b67ad2a5dedac36f00b3e44 100644
(file)
--- a/
src/jexer/TTerminalWindow.java
+++ b/
src/jexer/TTerminalWindow.java
@@
-242,7
+242,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();
+ }
}
/**