nlinum-relative icon indicating copy to clipboard operation
nlinum-relative copied to clipboard

Latency/ghosting when scrolling

Open syl20bnr opened this issue 9 years ago • 4 comments

There is latency when keeping j or k pressed and the buffer continues to scroll when the user stop pressing the keys.

More info in this issue: https://github.com/syl20bnr/spacemacs/issues/6094

syl20bnr avatar May 19 '16 18:05 syl20bnr

I can't reproduce this problem in fact. But I fix another bug with keep j pressing. Could you try latest version on git?

xcodebuild avatar May 20 '16 01:05 xcodebuild

I tried the last version and it is still here. Here is another repro step:

  • Open doc/DOCUMENTATION.org of Spacemacs
  • Expand all and go to the end of file
  • keep k pressed a while then press j. On both of my machines (GNU Emacs on OS X and Ubuntu) the point will continue to go up for a random time (sometime during 2 seconds depending on how long I pressed k) and then go down.

syl20bnr avatar May 20 '16 03:05 syl20bnr

This is due to the utilization of an idle timer. I tried without it and plug the refresh function directly in post-command hook and it does not work with smooth-scrolling.

syl20bnr avatar May 20 '16 03:05 syl20bnr

Also I proposed some alternatives on the Spacemacs issue. Absolute lines with nlinum don't suffer ghosting so maybe we could just display relative line when evil is waiting for a motion.

syl20bnr avatar May 20 '16 03:05 syl20bnr