From d62be3d12aca0110b20ec0cbcbeeeeebe4721dab Mon Sep 17 00:00:00 2001 From: Pwiz Date: Sun, 9 Apr 2023 21:26:45 +0800 Subject: [PATCH] fix ios cursor bug when word.length==1 (#1168) --- lib/src/widgets/editor.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/widgets/editor.dart b/lib/src/widgets/editor.dart index 4ddbfcae..e1f6d220 100644 --- a/lib/src/widgets/editor.dart +++ b/lib/src/widgets/editor.dart @@ -1135,7 +1135,7 @@ class RenderEditor extends RenderEditableContainerBox start: localWord.start + nodeOffset, end: localWord.end + nodeOffset, ); - if (position.offset - word.start <= 1) { + if (position.offset - word.start <= 1 && word.end != position.offset) { _handleSelectionChange( TextSelection.collapsed(offset: word.start), cause,