Skip to content

Commit 67e3543

Browse files
CatHood0CatHood0
andauthored
revert: "Resolved issue with broken IME composing rect in Windows desktop" (singerdmx#2266)
* revert: Resolved issue with broken IME composing rect in Windows desktop * Chore: dart format --------- Co-authored-by: CatHood0 <[email protected]>
1 parent 226543a commit 67e3543

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

lib/src/editor/raw_editor/raw_editor_state_text_input_client_mixin.dart

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -112,19 +112,9 @@ mixin RawEditorStateTextInputClientMixin on EditorState
112112
_textInputConnection!.show();
113113
}
114114

115-
TextRange _getComposingRange() {
116-
if (_lastKnownRemoteTextEditingValue != null &&
117-
_lastKnownRemoteTextEditingValue?.composing.isValid == true) {
118-
return _lastKnownRemoteTextEditingValue!.composing;
119-
} else if (textEditingValue.composing.isValid == true) {
120-
return textEditingValue.composing;
121-
} else {
122-
return widget.controller.selection;
123-
}
124-
}
125-
126115
void _updateComposingRectIfNeeded() {
127-
final composingRange = _getComposingRange();
116+
final composingRange = _lastKnownRemoteTextEditingValue?.composing ??
117+
textEditingValue.composing;
128118
if (hasConnection) {
129119
assert(mounted);
130120
final offset = composingRange.isValid ? composingRange.start : 0;

0 commit comments

Comments
 (0)