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

Fix TextArea display corruption/crash after undo of reverse-selected replacement #4309

Merged
merged 7 commits into from
Mar 19, 2024

Conversation

davep
Copy link
Contributor

@davep davep commented Mar 18, 2024

Fix for #4301

@davep davep added bug Something isn't working Task labels Mar 18, 2024
@davep davep self-assigned this Mar 18, 2024
@davep davep linked an issue Mar 18, 2024 that may be closed by this pull request
davep and others added 5 commits March 19, 2024 08:39
Co-authored-by: TomJGooding <101601846+TomJGooding@users.noreply.github.com>
Co-authored-by: TomJGooding <101601846+TomJGooding@users.noreply.github.com>
This switches from using from_location and to_location, which might be
reversed in terms of "sort order", but are still a valid selection.

Co-authored-by: TomJGooding <101601846+TomJGooding@users.noreply.github.com>
@davep davep marked this pull request as ready for review March 19, 2024 09:17
@davep davep merged commit d3df9d0 into Textualize:main Mar 19, 2024
20 checks passed
@davep davep deleted the bug/4301/undo-display-corruption branch March 19, 2024 12:41
async def test_issue_4301_reproduction(selection: Selection, edit: str) -> None:
"""Test https://github.com/Textualize/textual/issues/4301"""

async with (app := TextAreaApp()).run_test() as pilot:
Copy link
Member

Choose a reason for hiding this comment

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

wow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TextArea swallows lines after the Undo event
3 participants