justmoon / relative-numbers

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

Relative number becomes absolute if line changes on save #28

Closed lumio closed 6 years ago

lumio commented 7 years ago

When saving file, lines that get trimmed show the absolute line number. screen Sorry for the slow gif... it takes some moments to see what I mean 😄

justmoon commented 7 years ago

Mmmh, the way this extension works is by updating the gutter after Atom modifies it. So it looks like this is a case where trimming a line doesn't emit any of the events that we listen to, but does reset that line's gutter.

Valid bug - I don't have time to work on it at the moment, but would accept a PR if anyone would like to give it a shot.

justmoon commented 6 years ago

No longer an issue I believe, please lmk if I'm wrong.