mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
allow requesting (potentially stale) values for logical/visual caret position from non-EDT threads
(for IDEA-135620)
This commit is contained in:
@@ -1440,7 +1440,7 @@ public class CaretImpl extends UserDataHolderBase implements Caret, Dumpable {
|
||||
}
|
||||
|
||||
void updateCachedStateIfNeeded() {
|
||||
assertIsDispatchThread();
|
||||
if (!ApplicationManager.getApplication().isDispatchThread()) return;
|
||||
int modelCounter = myEditor.getCaretModel().myDocumentUpdateCounter;
|
||||
if (myDocumentUpdateCounter != modelCounter) {
|
||||
LogicalPosition lp = myEditor.offsetToLogicalPosition(getOffset());
|
||||
|
||||
Reference in New Issue
Block a user