diff --git a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm index 75fba93c4c..71ed1f655d 100644 --- a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm +++ b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm @@ -414,7 +414,7 @@ static flutter::TextRange RangeFromBaseExtent(NSNumber* base, } - (void)unmarkText { - if (_activeModel != nullptr) { + if (_activeModel == nullptr) { return; } _activeModel->CommitComposing();