diff options
| -rw-r--r-- | lisp/net/shr.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/net/shr.el b/lisp/net/shr.el index 330f7b5d84b..09e368f8b47 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el | |||
| @@ -246,6 +246,11 @@ DOM should be a parse tree as generated by | |||
| 246 | (* (frame-char-width) 2) | 246 | (* (frame-char-width) 2) |
| 247 | 0))))) | 247 | 0))))) |
| 248 | bidi-display-reordering) | 248 | bidi-display-reordering) |
| 249 | ;; If the window was hscrolled for some reason, shr-fill-lines | ||
| 250 | ;; below will misbehave, because it silently assumes that it | ||
| 251 | ;; starts with a non-hscrolled window (vertical-motion will move | ||
| 252 | ;; to a wrong place otherwise). | ||
| 253 | (set-window-hscroll nil 0) | ||
| 249 | (shr-descend dom) | 254 | (shr-descend dom) |
| 250 | (shr-fill-lines start (point)) | 255 | (shr-fill-lines start (point)) |
| 251 | (shr-remove-trailing-whitespace start (point)) | 256 | (shr-remove-trailing-whitespace start (point)) |