What operating system and terminal are you using?
Windows 10; Windows Terminal
An example that showcases the bug.
What did you expect to see?
Render correctly.
What did you see instead?
Some content has been rendered repeatedly.
There may be a problem with this function (renderer.go: countLines):