glow icon indicating copy to clipboard operation
glow copied to clipboard

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

Open lindy2076 opened this issue 1 year ago • 4 comments
trafficstars

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 avatar Jan 07 '24 21:01 lindy2076

I guess it is related to kitty...

lindy2076 avatar Jan 23 '24 21:01 lindy2076

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

AnhQuanTrl avatar Mar 19 '24 07:03 AnhQuanTrl

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

Xiloscient avatar May 12 '24 09:05 Xiloscient

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

Piker98988 avatar Jul 24 '24 07:07 Piker98988