justmoon/relative-numbers

Doesn't operate well with folds

Opened this issue · 0 comments

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