diff options
author | Adrian Kummerlaender | 2015-08-30 18:41:03 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2015-08-30 18:41:03 +0200 |
commit | e5a3db8f6207e6e232a05f55a6a436a0c9f92882 (patch) | |
tree | eef8a0fd8bc51cda869b4cb059227c6b9634881f /src/list | |
parent | bac3fd5935737381560fd3955e0e528674f05424 (diff) | |
download | MetaTerm-e5a3db8f6207e6e232a05f55a6a436a0c9f92882.tar MetaTerm-e5a3db8f6207e6e232a05f55a6a436a0c9f92882.tar.gz MetaTerm-e5a3db8f6207e6e232a05f55a6a436a0c9f92882.tar.bz2 MetaTerm-e5a3db8f6207e6e232a05f55a6a436a0c9f92882.tar.lz MetaTerm-e5a3db8f6207e6e232a05f55a6a436a0c9f92882.tar.xz MetaTerm-e5a3db8f6207e6e232a05f55a6a436a0c9f92882.tar.zst MetaTerm-e5a3db8f6207e6e232a05f55a6a436a0c9f92882.zip |
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.
Diffstat (limited to 'src/list')
-rw-r--r-- | src/list/TerminalItem.qml | 2 |
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(); |