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

Glitch on large text_input #50

Open
FayCarsons opened this issue Apr 1, 2024 · 1 comment
Open

Glitch on large text_input #50

FayCarsons opened this issue Apr 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@FayCarsons
Copy link

I wrote a little socket chat app w/ Mint tea, and for the most part it works great, but when the text input gets large enough to wrap around to the next line I get this rendering glitch:

Screen Shot 2024-04-01 at 6 15 33 PM

It seems like it's duplicating the last rendered line every few frames maybe?
I'm using the "latest version of riot" branch on Mac, with kitty for my terminal and Fish shell, if that's helpful.

@stuckinforloop
Copy link

I'm facing the same issue.

let sentence =
  {|No description, website, or topics provided. Add a README with an overview of your project. The answer is nuanced. The language specification does not stipulate what order the components of pairs should be evaluated in. Nor did our semantics exactly determine the order.|}

let initial_model =
  {
    cursor_idx = 0;
    characters = string_to_characters sentence;
    text = Text_input.make (sentence ^ "\n") ~cursor ();
    output = paint Fg sentence;
    quitting = false;
  }

Rendering issue when typing anything:

Screen.Recording.2024-04-02.at.14.47.20.mov

@leostera leostera added the bug Something isn't working label Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants