Skip to content

🐞 Incorrect text wrapping on long lines #367

@matiaskorhonen

Description

@matiaskorhonen

Description

At least some strings seem to produce incorrect text wrapping on long lines.

In this case it's this string:

* If the script includes the string `require(` anywhere in it, an export statement (`export { main };`) is appended to the script and it's compiled and bundled using esbuild.

To Reproduce

  1. Create an editor
  2. Paste in the above long line of text

Expected Behavior

The text should wrap without showing duplicated portions of the line

Version Information

CodeEditSourceEditor: 0.15.2
macOS: 15.7.4
Xcode: 26.2

Additional Context

No response

Screenshots

You can see in the screenshot below that the text ‘esbuild’ is partially duplicated.

Image

And in the screen recording you can see how the cursor behaves.

recording.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions