mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-action] IDEA-356782 Incorrect place of caret into text block with injection after enter
- fix visibility GitOrigin-RevId: 7110dd86ff015e1dd7bdc1f3ba666c26f291a8bf
This commit is contained in:
committed by
intellij-monorepo-bot
parent
12076a69aa
commit
5b12db3e7e
+2
-2
@@ -127,11 +127,11 @@ public final class JavaEnterInInjectedTextBlockHandler extends EnterHandlerDeleg
|
||||
}
|
||||
}
|
||||
|
||||
public record HostPosition(@NotNull PsiFile originalFile, @NotNull Editor originalEditor, int offset) {
|
||||
private record HostPosition(@NotNull PsiFile originalFile, @NotNull Editor originalEditor, int offset) {
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static HostPosition getHost(@NotNull DataContext dataContext) {
|
||||
private static HostPosition getHost(@NotNull DataContext dataContext) {
|
||||
Editor data = CommonDataKeys.HOST_EDITOR.getData(dataContext);
|
||||
if (!(data instanceof EditorEx originalEditor)) return null;
|
||||
Project project = CommonDataKeys.PROJECT.getData(dataContext);
|
||||
|
||||
Reference in New Issue
Block a user