RelativeLineNumbers icon indicating copy to clipboard operation
RelativeLineNumbers copied to clipboard

Change in number of digits of largest relative line number in file makes display jump left to right

Open saulrh opened this issue 11 years ago • 1 comments

The width of the relative line number column is dependent on the largest relative line number in the file: if the maximum relative line number is 95, then the column will be three-ish characters wide; if the maximum relative line number is 105, then the column will be four-ish characters wide. If the user scrolls so that the maximum relative line number crosses a power of ten, the maximum relative line number gains or loses a digit, the column changes width, and the entire source file jumps to the side by one character. This is rather disturbing visually.

saulrh avatar Sep 15 '14 16:09 saulrh

According to his commit messages, ivarboms has fixed this in his fork. Can we get that pulled in?

saulrh avatar Sep 15 '14 16:09 saulrh