-
-
Notifications
You must be signed in to change notification settings - Fork 981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kitty shuffles lines randomly in scrolling windows #7052
Comments
kitty will render whatever the program running in it asks it to render. You can easily generate a reproducer by running kitty with --dump-bytes When you do, I will take a look at it, but as I said chances are it is |
Here it is, starting glow, switching the tab, selecting lorem ipsum md, scrolling till the end and then pressing G button to make lines look normally |
I need the log only till whatever point the render was corrupted. Simply |
Same but closing after scrolling down |
OK I'll look at it when I have some time |
I managed to make it even shorter. So i just run xdg_prog is a bash script that echoes two lines:
P.S. |
Yeah, indeed. I have this problem in gnome-terminal too... Thanks for help! |
Describe the bug
When I use glow to view Markdown files or fzf with preview window I have problems with kitty rendering lines after scrolling.
I thought it was glow's issue but after installing fzf i encountered it again.
I wrote an issue charmbracelet/glow#554 where I described how to reproduce this bug.
My guess is that kitty has problems rendering scrolling windows with some static window (glow has a small line of text in the bottom and fzf has a preview window on top).
I use glow only in pager mode now (glow -p) because it doesn't produce "ghost" lines and don't shuffle them (it uses
less
).Also I was noticing "ghost" lines after exiting vim sometimes. My prompt showed the previous command
vim *filename*
but it was not real (it was replaced by the next command like if i had activated the insert mode in a text editor).To Reproduce
Steps to reproduce the behavior:
Screenshots
glow
The original file is on the right. It is clear that glow messed some lines in the last paragraph (on the left):
But after going to the bottom by pressing G everything aligns normally (that's how the file on the right was opened)
fzf (large input, e.g.
rg --files
)After some scrolling lines became messed up
But after reopening the preview window on top everything became normal.
exiting vim
Lines messed up. The cursor is on penultimate line (one line from the bottom)
Environment details
Additional context
Starting kitty with --config=none doesn't help, the problem is still present
The text was updated successfully, but these errors were encountered: