aboutsummaryrefslogtreecommitdiff
path: root/src/list
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-08-30 16:10:56 +0200
committerAdrian Kummerlaender2015-08-30 16:10:56 +0200
commitb121ed57547f244d0045622a84bf7079c8a4b048 (patch)
tree56fa103df9f48e513c5d444b4e94ae1ec5dff286 /src/list
parent04e05dc33d64aba28a84fc9af4268e14c2abd965 (diff)
downloadMetaTerm-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
Diffstat (limited to 'src/list')
-rw-r--r--src/list/TerminalItem.qml7
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();
+ }
});
}