From b121ed57547f244d0045622a84bf7079c8a4b048 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 30 Aug 2015 16:10:56 +0200 Subject: Only enter insert mode after history instatiation on last item --- src/list/TerminalItem.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/list') 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(); + } }); } -- cgit v1.2.3