rougier / elegant-emacs

A very minimal but elegant emacs (I think)
GNU General Public License v3.0
1.37k stars 78 forks source link

Right corner alignment off #29

Closed DivineDominion closed 2 years ago

DivineDominion commented 2 years ago

I found that, for whatever reason, the line/column indicators would crop in the corners: https://github.com/rougier/elegant-emacs/blob/2aba642522aafc915dd6375d34602de2cf50fbec/elegant.el#L155-L171

(It's probably due to a macOS and emacs 28 font rendering issue because esp. with light fonts I ran into calculation problems in the past.)

Screen Shot 2021-11-07 at 00 44 38

DivineDominion commented 2 years ago

To even get this, one probably needs:

(setq frame-resize-pixelwise t)
rougier commented 2 years ago

The problem comes from the margin that may not be a multiple of character width and then the manual computation can only be wrong. Maybe your proposed fix might work but it depends if we can apply a specific face for between left and right parts. For the record, last time I tried, it didn't not really work.