[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master d128003 3/3: Tweak shr window width computation
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master d128003 3/3: Tweak shr window width computation |
Date: |
Tue, 17 Apr 2018 14:34:33 -0400 (EDT) |
branch: master
commit d12800303fc1f3f6c45806ee0b1e638d20478938
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
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).
---
lisp/net/shr.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index 2d913a5..0fc7ccf 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