mirror of
https://github.com/fadden/6502bench.git
synced 2025-02-20 06:29:04 +00:00
Fix multi-select with highlighted target
If you select a line that refers to another line, the target line's address is highlighted. If you select multiple lines, the highlight is removed. The code that removes the highlight was inadvertently resetting the selection, making it impossible to shift-click a range that ended with a highlighted line.
This commit is contained in:
parent
55359d423a
commit
74fa310718
@ -1004,12 +1004,8 @@ namespace SourceGen.WpfGui {
|
||||
private void CodeListView_ReplaceEntry(int index, DisplayList.FormattedParts newParts) {
|
||||
bool isSelected = CodeDisplayList.SelectedIndices[index];
|
||||
if (isSelected && codeListView.SelectionMode != SelectionMode.Single) {
|
||||
if (codeListView.SelectionMode != SelectionMode.Single) {
|
||||
Debug.WriteLine("HEY: hit unhappy single-select case");
|
||||
codeListView.SelectedIndex = -1;
|
||||
} else {
|
||||
codeListView.SelectedItems.Remove(CodeDisplayList[index]);
|
||||
}
|
||||
// Remove entry from selected items list in ListView control.
|
||||
codeListView.SelectedItems.Remove(CodeDisplayList[index]);
|
||||
}
|
||||
CodeDisplayList[index] = newParts;
|
||||
if (isSelected) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user