aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-08-30 18:41:03 +0200
committerAdrian Kummerlaender2015-08-30 18:41:03 +0200
commite5a3db8f6207e6e232a05f55a6a436a0c9f92882 (patch)
treeeef8a0fd8bc51cda869b4cb059227c6b9634881f
parentbac3fd5935737381560fd3955e0e528674f05424 (diff)
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.
-rw-r--r--src/list/TerminalItem.qml2
1 files changed, 1 insertions, 1 deletions
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();