Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avm2: Implement TextField.getLineIndexOfChar() #16906

Merged
merged 3 commits into from
Jun 29, 2024

Conversation

kjarosh
Copy link
Member

@kjarosh kjarosh commented Jun 27, 2024

Implement TextField.getLineIndexOfChar().

Related to #14668.

@kjarosh kjarosh force-pushed the textfield-line-index-of-char branch 2 times, most recently from 0315521 to 3b2cd0d Compare June 27, 2024 21:06
return Ok(Value::Number(-1f64));
}

return if let Some(line) = this.line_index_of_char(index as usize) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary return

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How come clippy didn't catch this then? :O

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed some more unnecessary returns

@kjarosh kjarosh force-pushed the textfield-line-index-of-char branch 2 times, most recently from c7a2009 to 603c84a Compare June 27, 2024 22:51
@kjarosh kjarosh added text Issues relating to text rendering/input A-avm2 Area: AVM2 (ActionScript 3) labels Jun 28, 2024
@kjarosh kjarosh force-pushed the textfield-line-index-of-char branch from 603c84a to 5d56b91 Compare June 29, 2024 09:18
@kjarosh kjarosh enabled auto-merge (rebase) June 29, 2024 09:26
@kjarosh kjarosh merged commit 0566503 into ruffle-rs:master Jun 29, 2024
17 checks passed
@kjarosh kjarosh deleted the textfield-line-index-of-char branch June 29, 2024 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-avm2 Area: AVM2 (ActionScript 3) text Issues relating to text rendering/input
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants