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

Ensure SurroundingText is empty for empty line #16710

Merged
merged 2 commits into from
Aug 17, 2024

Conversation

MrJul
Copy link
Member

@MrJul MrJul commented Aug 16, 2024

What does the pull request do?

This PR ensures that TextBoxTextInputMethodClient.SurroundingText returns an empty string when on a trailing blank line.
Alternative to #16693, without altering the ShapedTextRun invariants.

A unit test has been added.

Fixed issues

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0051303-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@MrJul MrJul added the bug label Aug 16, 2024
@emmauss
Copy link
Contributor

emmauss commented Aug 16, 2024

Fixes #16656

@maxkatz6 maxkatz6 enabled auto-merge August 16, 2024 21:47
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0051329-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 added this pull request to the merge queue Aug 17, 2024
Merged via the queue into AvaloniaUI:master with commit 6d10a68 Aug 17, 2024
10 checks passed
@MrJul MrJul deleted the fixes/empty-line-surrounding-text branch September 19, 2024 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TextBlock unexpectedly deletes first character when using input method auto-complete
5 participants