Commits

Herbert Breunung committed da40cfc

cant undo opening file

Comments (0)

Files changed (1)

 	my $doc = Kephra::App::Panel::Editor::create_document($file);
 	return unless ref $doc eq 'Kephra::Document';
 	open my $FH, '<', $file;
-	$doc->editor->SetText( do { local $/; <$FH> } );
+	my $ed = $doc->editor;
+	$ed->SetText( do { local $/; <$FH> } );
+	$ep->EmptyUndoBuffer;
+	$ep->SetSavePoint;
 }
 sub save {}