justmoon/relative-numbers

Relative number becomes absolute if line changes on save

Closed this issue ยท 2 comments

lumio commented

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 ๐Ÿ˜„

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.

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