diff options
| author | Eli Zaretskii | 2015-12-31 17:18:25 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2015-12-31 17:18:25 +0200 |
| commit | bb83bb11f9c38199e413045300acf6ef04f67b4a (patch) | |
| tree | 28dde4e031fe4de5c83d7ed4b7eff99917af4654 | |
| parent | b1a8509030a8656a6fd3e8bb64ae38d85cd889ee (diff) | |
| download | emacs-bb83bb11f9c38199e413045300acf6ef04f67b4a.tar.gz emacs-bb83bb11f9c38199e413045300acf6ef04f67b4a.zip | |
Fix EWW rendering of long RTL lines
* lisp/net/shr.el (shr-insert-document): Undo any previous hscroll
of the selected window before filling its lines. (Bug#22250)
| -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)) |