mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't select the whole file text in copy reference aciton (IDEA-100443)
This commit is contained in:
@@ -104,7 +104,7 @@ public class CopyReferenceAction extends DumbAwareAction {
|
||||
PsiReference reference = TargetElementUtilBase.findReference(editor, editor.getCaretModel().getOffset());
|
||||
if (reference != null) {
|
||||
highlightManager.addOccurrenceHighlights(editor, new PsiReference[]{reference}, attributes, true, null);
|
||||
} else {
|
||||
} else if (element != PsiDocumentManager.getInstance(project).getCachedPsiFile(editor.getDocument())) {
|
||||
highlightManager.addOccurrenceHighlights(editor, new PsiElement[]{element}, attributes, true, null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user