0

when I put relative numbers on, I get bouncing text when I move up an down.

I have short files where this is an issue, so it's not the number length. The entire line reshapes depending on the "width" of the number.

I tried a wider number column, but it's the same effect.

When i turn off

Here is my init.el:

(global-display-line-numbers-mode 1) ;; line numbers globally
(setq display-line-numbers-width 3)
(setq display-line-numbers-type 'relative)

Emacs 28.2

Vinn
  • 293
  • 2
  • 8
  • Perhaps you should share a screenshot? When I try to reproduce it locally, I don’t see anything like what you describe. – db48x Nov 06 '22 at 14:52
  • It's hard to show the issue in a screenshot. I created a gif but I cannot upload gif's to SE. – Vinn Nov 06 '22 at 15:03
  • Then take two screenshots, one before and one after. – db48x Nov 06 '22 at 15:28
  • What font are you using? Can it be the different number digits have different widths in that font? – NickD Nov 06 '22 at 16:37
  • Good question, I am using jetbrains mono. Yeah, they defo have different widths. I will try another font. – Vinn Nov 07 '22 at 05:44
  • If it is tagged "mono", that would imply "monospace" (aka fixed-width) to me. Are you sure that they have different widths? – NickD Nov 07 '22 at 12:58

0 Answers0