diff --git a/src/main/kotlin/org/arend/refactoring/move/ArendMoveHandlerDelegate.kt b/src/main/kotlin/org/arend/refactoring/move/ArendMoveHandlerDelegate.kt index b22040afa..626cc1a78 100644 --- a/src/main/kotlin/org/arend/refactoring/move/ArendMoveHandlerDelegate.kt +++ b/src/main/kotlin/org/arend/refactoring/move/ArendMoveHandlerDelegate.kt @@ -60,7 +60,7 @@ class ArendMoveHandlerDelegate: MoveHandlerDelegate() { } fun checkMoveable(element: PsiElement) = - element is ArendGroup && isMoveableGroup(element) + element is ArendGroup && element !is ArendFile && isMoveableGroup(element) } } \ No newline at end of file