zklinger / RelativeLineNumbers

Visual Studio 2010/2012/2013 extension to display relative line numbers like in Vim. Useful for ViEmu and VsVim extension users.
GNU General Public License v3.0
16 stars 15 forks source link

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

Open saulrh opened 10 years ago

saulrh commented 10 years ago

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 commented 10 years ago

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