bubbletea icon indicating copy to clipboard operation
bubbletea copied to clipboard

(v2) duplicated line in `split-editors` example on init

Open meowgorithm opened this issue 1 year ago • 1 comments

This is likely on the Bubbles v2 side of things but when the split-editors example initializes the first lines in textarea are duplicated. This goes away on keypress.

Screenshot 2024-09-18 at 3 09 36 PM

meowgorithm avatar Sep 18 '24 19:09 meowgorithm

I'm not able to reproduce using Kitty and Ghostty with/without Tmux :/

aymanbagabas avatar Sep 19 '24 17:09 aymanbagabas

This issue occurs in v2.0.0-alpha.1 and originated from commit v2.0.0-alpha.1~24.

Before this commit, when Program was initialized with WithAltScreen(), Program.Run() would call p.render.SetMode(), which cleared the screen with ansi.EraseEntireDisplay and ansi.MoveCursorOrigin.

I believe this issue has been fixed in d727a8c on the v2-* branches.

haoqixu avatar Nov 05 '24 09:11 haoqixu

I think #1159 is also caused by the same problem.

haoqixu avatar Nov 05 '24 09:11 haoqixu

I think #1159 is also caused by the same problem.

cc @robinovitch61

haoqixu avatar Nov 06 '24 06:11 haoqixu

Yes, this seems resolved on the latest v2 alpha. Thanks @haoqixu

robinovitch61 avatar Dec 01 '24 02:12 robinovitch61