bubbletea icon indicating copy to clipboard operation
bubbletea copied to clipboard

Seems a type View Update Bug

Open abitnya opened this issue 3 months ago • 1 comments

Describe the bug I found that if my content for NewView is not changed under release mode, the updating of the cursor will not work;but if i use vscode debugger to run it, it will work!

Setup Please complete the following information along with version numbers, if applicable.

  • OS [Fedora44]
  • Shell [zsh]
  • Terminal Emulator [kitty, vscode terminal]
  • Terminal Multiplexer [tmux](i had it but i did not use it )

To Reproduce Steps to reproduce the behavior: just create a text in model but do not change it, and update Cursor.X in model in Update and View method, and if you press the key to move Cursor's X coordinate you will find that the Cursor did not move

Source Code

Expected behavior the cursor should move when we make a View with cursor coordinate though we did not change the content for the View

Screenshots Add screenshots to help explain your problem.

Additional context Add any other context about the problem here. is that a bug or just a feature, i did not find some docs which explain it and i am sorry if i ignored

abitnya avatar Aug 28 '26 13:08 abitnya

I'll take this. I'm on Fedora 44 too, so I'll reproduce it with unchanged view content and a moving cursor, then open a PR with the fix.

awss1i avatar Oct 11 '26 16:10 awss1i