]> git.eshelyaron.com Git - emacs.git/commit
Fix image-mode-fit-frame some more
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 24 Mar 2022 08:54:38 +0000 (09:54 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 24 Mar 2022 08:54:56 +0000 (09:54 +0100)
commit0e739909abb679812484e2ddbe8483eb2dd5c815
tree172bee320aa1e8b6617c04bb7c3ab9eca7803698
parentcae187e430dc01a46ff719257368c7166eaa8ad1
Fix image-mode-fit-frame some more

* lisp/image-mode.el (image-mode-fit-frame): Use frame-text-width
and fit-frame-to-buffer instead of computing things ourselves
(bug#37630).  This makes things work better across platforms.
lisp/image-mode.el