TeMPOraL / nyan-mode

Nyan Cat for Emacs! Nyanyanyanyanyanyanyanyanyan!
GNU General Public License v3.0
794 stars 68 forks source link

Fix math for narrowed windows and visual-fill-column'd windows #58

Open duckwork opened 2 years ago

duckwork commented 2 years ago

In modes like visual-fill-column, using window-total-width calculates the actual width of the mode-line.

When the buffer is narrowed, the nyan cat should (in my mind) update relative to the narrowed part of the buffer.

I fixed both of these math issues. Let me know if I should submit two separate pull requests instead.