mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
navigate to valid task windows only
This commit is contained in:
@@ -222,6 +222,9 @@ public class TaskFile implements Stateful {
|
||||
}
|
||||
|
||||
private void navigateToTaskWindow(@NotNull final Editor editor, @NotNull final TaskWindow firstTaskWindow) {
|
||||
if (!firstTaskWindow.isValid(editor.getDocument())) {
|
||||
return;
|
||||
}
|
||||
mySelectedTaskWindow = firstTaskWindow;
|
||||
LogicalPosition taskWindowStart = new LogicalPosition(firstTaskWindow.getLine(), firstTaskWindow.getStart());
|
||||
editor.getCaretModel().moveToLogicalPosition(taskWindowStart);
|
||||
|
||||
Reference in New Issue
Block a user