Skip to content

Editor ignores word wrap setting when rendering first frame #660

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

Open
massivemadness opened this issue Mar 17, 2025 · 3 comments
Open

Editor ignores word wrap setting when rendering first frame #660

massivemadness opened this issue Mar 17, 2025 · 3 comments

Comments

@massivemadness
Copy link
Contributor

When word wrap is enabled, the editor skips the first frame and renders the text as if it had horizontal scrolling.
This results in an annoying flickering effect on video:

frame_skip.mp4
@Rosemoe
Copy link
Owner

Rosemoe commented Mar 18, 2025

The editor analyzes wordwrap in background. So before the initial analysis is done, the editor will display as if wordwrap is not enabled.

@massivemadness
Copy link
Contributor Author

Is there a way to opt-in this behavior? It doesn't look good when switching between tabs in the app

@massivemadness
Copy link
Contributor Author

massivemadness commented Mar 23, 2025

Large files take a long time to calculate line breaks, now I understand why you're doing this in background. But maybe it would be better to have some kind of "precompution" API, for example - while reading a file I could show a progress bar on UI, but at the same time I can calculate line breaks and pass them to the editor along with the Content object. This would lead to a much smoother experience

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants