justmoon / relative-numbers

Relative line numbers package for Atom
https://atom.io/packages/relative-numbers
MIT License
37 stars 16 forks source link

Fix absolute with collapsed blocks #49

Closed 3wille closed 6 years ago

3wille commented 6 years ago

fixes #33

If Soft wraps count was enabled the absolute numbers were the 'data-screen-row' before. This was unexpected behaviour and doesn't fit to atom's default behaviour. Now the absolute row number used for the display is always fetched using 'data-buffer-row' while the absolute row number used for calculating relative depends on the softWrapsCount setting.

3wille commented 6 years ago

Hi, I am unsure whether and how to test this, but it works for me 😉