I'm trying to set a scroll margin to emacs with the
scroll-margin variable, but I've noticed that when you do that and you have
display-line-numbers-mode enabled, the scrolling doesn't work properly when coming up from the bottom of the file.
Notice that, when scrolling down, it scrolls properly, but, when the cursor reaches the bottom of the file, and starts going up, it doesn't respect the scroll-margin until the bottom of the file is not visible anymore.
If I disable
display-line-numbers-mode the scrolling works properly. Is there a way to achieve scroll margin along with line numbers without falling back to