diff options
Diffstat (limited to 'src/list')
-rw-r--r-- | src/list/TerminalItem.qml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/list/TerminalItem.qml b/src/list/TerminalItem.qml index ae6bc77..4dba930 100644 --- a/src/list/TerminalItem.qml +++ b/src/list/TerminalItem.qml @@ -112,8 +112,11 @@ Item { item.terminal.onFinished.connect(function() { createHistoryViewer(item.terminal.history); item.reset(); - terminalList.selectNext(); - mode.enterInsertMode(); + + if ( item.index === ( terminalList.children.length - 2 ) ) { + terminalList.selectNext(); + mode.enterInsertMode(); + } }); } |