From: Lars Ingebrigtsen Date: Tue, 17 Apr 2018 18:34:12 +0000 (+0200) Subject: Tweak shr window width computation X-Git-Tag: emacs-27.0.90~5155 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d12800303fc1f3f6c45806ee0b1e638d20478938;p=emacs.git Tweak shr window width computation * lisp/net/shr.el (shr-insert-document): The computation of the window width is apparently one pixel too wide for the shr line folding algorithm (bug#31196). --- diff --git a/lisp/net/shr.el b/lisp/net/shr.el index 2d913a5a92f..0fc7ccf9582 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -274,7 +274,8 @@ DOM should be a parse tree as generated by (if (and (null shr-width) (not (shr--have-one-fringe-p))) (* (frame-char-width) 2) - 0))))) + 0) + 1)))) (max-specpdl-size max-specpdl-size) bidi-display-reordering) ;; If the window was hscrolled for some reason, shr-fill-lines