justmoon / relative-numbers

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

Doesn't operate well with folds #52

Open sarangjo opened 5 years ago

sarangjo commented 5 years ago

Custom Settings in config:

"relative-numbers":
  softWrapsCount: false
  1. When there's a fold, the number of lines up or down considers a fold only as one line; but the relative numbers package uses the actual relative difference in lines. In the following image, if I run d9j (in vim mode), which ideally should delete up to the const line, it actually goes 9 visible lines down, which is far beyond the const line.

image

  1. When opening/closing a fold, for some reason the line numbers below the active line change to absolute. In the same example as above when I open the fold, this is what happens:

image