mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
IJPL-165323 Use ReadAction in EditorAccessibilityCaret's getMark and getDot methods
(cherry picked from commit 58dd6e4a4abaab755b29e01b5b126e466d4646e7) IJ-CR-150010 GitOrigin-RevId: f939ba6a8935864bcca744bdb257c5cb2b2ed402
This commit is contained in:
committed by
intellij-monorepo-bot
parent
43c51f2955
commit
45074b3937
@@ -1078,12 +1078,12 @@ public final class EditorComponentImpl extends JTextComponent implements Scrolla
|
||||
|
||||
@Override
|
||||
public int getDot() {
|
||||
return editor.getCaretModel().getOffset();
|
||||
return ReadAction.compute(() -> editor.getCaretModel().getOffset());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMark() {
|
||||
return editor.getSelectionModel().getSelectionStart();
|
||||
return ReadAction.compute(() -> editor.getSelectionModel().getSelectionStart());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user