glow
glow copied to clipboard
glow shuffles lines randomly after scrolling using u/d buttons or mouse
Describe the bug After some scrolling lines start to shuffle randomly.
Setup
- OS: ubuntu 22.04.3; i3wm
- Shell: bash
- Terminal Emulator: kitty 0.30.0
- Terminal Multiplexer: none
- Locale: en_US.UTF-8, ru_RU.UTF-8
- Go version: go1.20.4 linux/amd64
To Reproduce Steps to reproduce the behavior:
- Start glow not in pager mode:
glow - Open any document
- Scroll randomly (with a mouse or by using
u/d) - See some lines shuffle
Expected behavior Lines shouldn't be shuffled.
Screenshots
The original file is on the right. It is clear that glow messed some lines in the last paragraph (on the left):
Other lines shuffle after some scrolling:
It is especially sad when a code section is messed up:
Additional context
If a file is opened in pager mode (glow -p filename) then scrolling works fine and nothing shuffles.
Scrolling by using b/f/j/k/g/G seems to work fine.
Changing pager variable in glow.yml doesn't help.
I built glow from source. The latest commit in my local repo is 54dd62a2a43d36e10d075b2b3fe9b0f637f2e2b9.
I guess it is related to kitty...
Having the same issue in alacritty. I don't think this is related to terminal emulator at all
This is an issue in iterm2 also. very annoying and makes it unusable unfortunately.
Having the same issue on wezterm, but some lines even disappear here!