diff --git a/lib/src/widgets/raw_editor/raw_editor_state_text_input_client_mixin.dart b/lib/src/widgets/raw_editor/raw_editor_state_text_input_client_mixin.dart index ceb91645..ce9107fa 100644 --- a/lib/src/widgets/raw_editor/raw_editor_state_text_input_client_mixin.dart +++ b/lib/src/widgets/raw_editor/raw_editor_state_text_input_client_mixin.dart @@ -203,7 +203,8 @@ mixin RawEditorStateTextInputClientMixin on EditorState diff.start, diff.deleted.length, diff.inserted, - value.selection, + value.selection.copyWith( + affinity: widget.configurations.controller.selection.affinity), ); // if (widget.configurations.controller.selectedFontFamily != null) {