From 9367bdf6929d60d0b9b05b1de39617681dfc7cff Mon Sep 17 00:00:00 2001 From: Ellet Date: Mon, 11 Mar 2024 13:45:27 +0300 Subject: [PATCH] revert: fix selection.affinity always downstream after updateEditingValue --- .../raw_editor/raw_editor_state_text_input_client_mixin.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 efcd47c9..79e85950 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,8 +203,7 @@ mixin RawEditorStateTextInputClientMixin on EditorState diff.start, diff.deleted.length, diff.inserted, - value.selection.copyWith( - affinity: widget.configurations.controller.selection.affinity), + value.selection, ); } }