AlecAivazis / survey

A golang library for building interactive and accessible prompts with full support for windows and posix terminals.
MIT License
4.07k stars 350 forks source link

Rendering error when there are runes with width > 1 in an option with multiple lines #444

Closed VCisHere closed 1 year ago

VCisHere commented 1 year ago

What operating system and terminal are you using? Windows 10; Windows Terminal

An example that showcases the bug. image

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): image