Fix single line edit prediction detection (#23456)

#23411 introduced an "Accept" callout for single line edits, but the
logic to detect them was incorrect causing it to trigger for multiline
insertions, this PR fixes that.

Release Notes:

- N/A
This commit is contained in:
Agus Zubiaga 2025-01-22 10:00:43 -03:00 committed by GitHub
parent f0b5b0b4df
commit 55721c65d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 35 additions and 43 deletions

View file

@ -1211,7 +1211,6 @@ impl Element for Div {
state.child_bounds = Vec::with_capacity(request_layout.child_layout_ids.len());
state.bounds = bounds;
let requested = state.requested_scroll_top.take();
// TODO az
for (ix, child_layout_id) in request_layout.child_layout_ids.iter().enumerate() {
let child_bounds = cx.layout_bounds(*child_layout_id);