Browse Source

Fix #1722: Don't abort mouse selection unless the user clicked on a hyperlink

pull/1728/head
Daniel Grunwald 6 years ago
parent
commit
83ea3449d1
  1. 5
      ILSpy/TextView/DecompilerTextView.cs

5
ILSpy/TextView/DecompilerTextView.cs

@ -649,12 +649,13 @@ namespace ICSharpCode.ILSpy.TextView @@ -649,12 +649,13 @@ namespace ICSharpCode.ILSpy.TextView
if (referenceSegment == null) {
ClearLocalReferenceMarks();
} else if (referenceSegment.IsLocal || !referenceSegment.IsDefinition) {
JumpToReference(referenceSegment);
textEditor.TextArea.ClearSelection();
}
// cancel mouse selection to avoid AvalonEdit selecting between the new
// cursor position and the mouse position.
textEditor.TextArea.MouseSelectionMode = MouseSelectionMode.None;
JumpToReference(referenceSegment);
}
}
}

Loading…
Cancel
Save