Skip to content

Replace Ansi.Text.clone() with copy constructor #586

@remkop

Description

@remkop

Current Ansi.Text.clone() implementation may result in bugs since the underlying styled list and plaintext buffer are shared between the original and the copy. It is safer to make a full copy.

The clone() implementation can delegate to the copy constructor.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions