From cfd937ff1cf1d06db1eea188829c601491df8d17 Mon Sep 17 00:00:00 2001 From: "xingwei.zhu" Date: Thu, 21 Nov 2019 18:38:15 +0800 Subject: [PATCH] fix PLUGIN --- Runtime/Plugins/platform/ios/UIWidgetsTextInputPlugin.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/Plugins/platform/ios/UIWidgetsTextInputPlugin.mm b/Runtime/Plugins/platform/ios/UIWidgetsTextInputPlugin.mm index f48bb0fa..62cd35c4 100755 --- a/Runtime/Plugins/platform/ios/UIWidgetsTextInputPlugin.mm +++ b/Runtime/Plugins/platform/ios/UIWidgetsTextInputPlugin.mm @@ -556,8 +556,8 @@ - (void)updateEditingState { NSUInteger selectionBase = ((UIWidgetsTextPosition*)_selectedTextRange.start).index; NSUInteger selectionExtent = ((UIWidgetsTextPosition*)_selectedTextRange.end).index; - NSUInteger composingBase = -1; - NSUInteger composingExtent = -1; + NSUInteger composingBase = 0; + NSUInteger composingExtent = 0; if (self.markedTextRange != nil) { composingBase = ((UIWidgetsTextPosition*)self.markedTextRange.start).index; composingExtent = ((UIWidgetsTextPosition*)self.markedTextRange.end).index;