justmoon / relative-numbers

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

fix #10 #12

Closed cbrst closed 8 years ago

cbrst commented 8 years ago

When "Start At One" is not set, the "True Number" showed one less than the actual line number (starting with "0" on line 1).

justmoon commented 8 years ago

I think a cleaner fix is to move the relative += offset into an else clause rather than to compensate for it. Provided in aa60fc2db8abefb629c6f1216bd0d649f354a644.

cbrst commented 8 years ago

I didn't catch this at first. But after revisiting it today, I agree that your solution is a lot cleaner.