From e5a3db8f6207e6e232a05f55a6a436a0c9f92882 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 30 Aug 2015 18:41:03 +0200 Subject: Prevent visual selection change on `kill` command `TerminalItem`'s `reset` member method wrongly performed a visual selection change which led to inconsistency when calling `kill` on a non-selected index. Visual selection update is now performed on history view instantiation. --- src/list/TerminalItem.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/list') diff --git a/src/list/TerminalItem.qml b/src/list/TerminalItem.qml index 4dba930..9a1b758 100644 --- a/src/list/TerminalItem.qml +++ b/src/list/TerminalItem.qml @@ -74,7 +74,6 @@ Item { command.focus = true; mode.enterNormalMode(); - select(); unfocus(); } } @@ -112,6 +111,7 @@ Item { item.terminal.onFinished.connect(function() { createHistoryViewer(item.terminal.history); item.reset(); + item.select(); if ( item.index === ( terminalList.children.length - 2 ) ) { terminalList.selectNext(); -- cgit v1.2.3