mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
"scroll from source" correctly works with split editors (IDEA-65891)
This commit is contained in:
@@ -1616,6 +1616,11 @@ public class ProjectViewImpl extends ProjectView implements PersistentStateCompo
|
||||
|
||||
public void scrollFromSource() {
|
||||
final FileEditorManager fileEditorManager = FileEditorManager.getInstance(myProject);
|
||||
final Editor selectedTextEditor = fileEditorManager.getSelectedTextEditor();
|
||||
if (selectedTextEditor != null) {
|
||||
selectElementAtCaret(selectedTextEditor);
|
||||
return;
|
||||
}
|
||||
final FileEditor[] editors = fileEditorManager.getSelectedEditors();
|
||||
for (FileEditor fileEditor : editors) {
|
||||
if (fileEditor instanceof TextEditor) {
|
||||
|
||||
Reference in New Issue
Block a user