mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
EA-103197 fix
This commit is contained in:
+4
@@ -793,6 +793,10 @@ public class CodeStyleManagerImpl extends CodeStyleManager implements Formatting
|
||||
if (myCaretModel.getVisualPosition().column == myVisualColumnToRestore) {
|
||||
return;
|
||||
}
|
||||
Project project = myEditor.getProject();
|
||||
if (project == null || PsiDocumentManager.getInstance(project).isDocumentBlockedByPsi(myDocument)) {
|
||||
return;
|
||||
}
|
||||
insertWhiteSpaceIndentIfNeeded(newCaretLineStartOffset);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user