Closed vijaypanchalr3 closed 1 year ago
I think the problem is here where right part is aligned with right margin. Can you comment out (-1 . right-margin)
and check if it solved the problem?
Problem is that I don't remember why I added this right margin alignment.
I currently don't have that in my fork:
(propertize " " 'face face-modeline 'display `(space :align-to (- right ,right-len)))
That's all I have and this is what it looks like with window margins:
My line numbers do align to the window margin, but the gray style goes all the way to the end. That could be a face difference though... hard to diagnose this from just a screenshot.
Can you give a try to github version? Else, you can have a look at https://www.gnu.org/software/emacs/manual/html_node/elisp/Pixel-Specification.html and tweak the calculation.
master
looks right to me
I updated mine. There's still a difference w/ the right-len
, I don't know why what the significance of (- right-len 0)
is and putting right-len
in its stead seems to work just fine for me.
the (- right-len 0)
is probably a left over when I was debugging it. It's probably unnecessary.