Skip to content

Commit d6937fe

Browse files
Fixed typo in type comparison that broke a bunch of tests
1 parent ecb875b commit d6937fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

super_editor/lib/src/default_editor/common_editor_operations.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1799,7 +1799,7 @@ class CommonEditorOperations {
17991799
}
18001800

18011801
final extentNodePosition = composer.selection!.extent.nodePosition;
1802-
if (extentNodePosition is! TextNode) {
1802+
if (extentNodePosition is! TextNodePosition) {
18031803
editorOpsLog.fine("The selected position is not a text position. Inserting new paragraph first.");
18041804
editor.execute([InsertNewlineAtCaretRequest()]);
18051805
}

0 commit comments

Comments
 (0)