fix ios cursor bug when word.length==1

pull/1168/head
foreverpw 2 years ago
parent d517847d8a
commit bd3f82b1ab
  1. 2
      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,

Loading…
Cancel
Save