diff options
author | Adrian Kummerlaender | 2015-08-30 16:10:56 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2015-08-30 16:10:56 +0200 |
commit | b121ed57547f244d0045622a84bf7079c8a4b048 (patch) | |
tree | 56fa103df9f48e513c5d444b4e94ae1ec5dff286 | |
parent | 04e05dc33d64aba28a84fc9af4268e14c2abd965 (diff) | |
download | MetaTerm-b121ed57547f244d0045622a84bf7079c8a4b048.tar MetaTerm-b121ed57547f244d0045622a84bf7079c8a4b048.tar.gz MetaTerm-b121ed57547f244d0045622a84bf7079c8a4b048.tar.bz2 MetaTerm-b121ed57547f244d0045622a84bf7079c8a4b048.tar.lz MetaTerm-b121ed57547f244d0045622a84bf7079c8a4b048.tar.xz MetaTerm-b121ed57547f244d0045622a84bf7079c8a4b048.tar.zst MetaTerm-b121ed57547f244d0045622a84bf7079c8a4b048.zip |
Only enter insert mode after history instatiation on last item
-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(); + } }); } |