mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-54991 - ISE: CaretModelImpl.getCurrentCaret
This commit is contained in:
@@ -229,7 +229,8 @@ public class CaretModelImpl implements CaretModel, PrioritizedDocumentListener,
|
||||
@Override
|
||||
@NotNull
|
||||
public CaretImpl getCurrentCaret() {
|
||||
return ApplicationManager.getApplication().isDispatchThread() && myCurrentCaret != null ? myCurrentCaret : getPrimaryCaret();
|
||||
CaretImpl currentCaret = myCurrentCaret;
|
||||
return ApplicationManager.getApplication().isDispatchThread() && currentCaret != null ? currentCaret : getPrimaryCaret();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user