minttea icon indicating copy to clipboard operation
minttea copied to clipboard

Glitch on large text_input

Open FayCarsons opened this issue 10 months ago • 1 comments

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.

FayCarsons avatar Apr 01 '24 23:04 FayCarsons

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:

https://github.com/leostera/minttea/assets/53475167/68f7860e-2eaf-4109-a119-a4f9f946f090

stuckinforloop avatar Apr 02 '24 09:04 stuckinforloop