Skip to content
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

glow shuffles lines randomly after scrolling using u/d buttons or mouse #554

Open
lindy2076 opened this issue Jan 7, 2024 · 4 comments
Open

Comments

@lindy2076
Copy link

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:

  1. Start glow not in pager mode: glow
  2. Open any document
  3. Scroll randomly (with a mouse or by using u/d)
  4. 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):
Screenshot from 2024-01-08 00-16-44
Other lines shuffle after some scrolling:
Screenshot from 2024-01-08 00-17-45
It is especially sad when a code section is messed up:
Screenshot from 2024-01-08 00-18-19

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.

@lindy2076
Copy link
Author

I guess it is related to kitty...

@AnhQuanTrl
Copy link

Having the same issue in alacritty. I don't think this is related to terminal emulator at all

@Xiloscient
Copy link

This is an issue in iterm2 also.
very annoying and makes it unusable unfortunately.

@Piker98988
Copy link

Having the same issue on wezterm, but some lines even disappear here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants