diff options
| author | Eli Zaretskii | 2016-10-08 12:35:17 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2016-10-08 12:35:17 +0300 |
| commit | 197a6bcc20cecba40b56ae478d42a33eb1e19d57 (patch) | |
| tree | 1210f84e26f4d6b7f04c21519c2d14ba796c42b6 | |
| parent | 3566644a332f42c2fb68e93f04f2cec92917fcc9 (diff) | |
| download | emacs-197a6bcc20cecba40b56ae478d42a33eb1e19d57.tar.gz emacs-197a6bcc20cecba40b56ae478d42a33eb1e19d57.zip | |
Fix horizontal scrolling during Isearch
* lisp/isearch.el (isearch-update): Compute the window's body
width in a way that is correct when there are no fringes.
(Bug#24584)
| -rw-r--r-- | lisp/isearch.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el index 9df7627fa7c..01819510a6f 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -1012,7 +1012,8 @@ The last thing is to trigger a new round of lazy highlighting." | |||
| 1012 | ;; pos-visible-in-window-group-p returns non-nil, but | 1012 | ;; pos-visible-in-window-group-p returns non-nil, but |
| 1013 | ;; the X coordinate it returns is 1 pixel beyond | 1013 | ;; the X coordinate it returns is 1 pixel beyond |
| 1014 | ;; the last visible one. | 1014 | ;; the last visible one. |
| 1015 | (>= (car visible-p) (window-body-width nil t))) | 1015 | (>= (car visible-p) |
| 1016 | (* (window-max-chars-per-line) (frame-char-width)))) | ||
| 1016 | (set-window-hscroll (selected-window) current-scroll)))) | 1017 | (set-window-hscroll (selected-window) current-scroll)))) |
| 1017 | (if isearch-other-end | 1018 | (if isearch-other-end |
| 1018 | (if (< isearch-other-end (point)) ; isearch-forward? | 1019 | (if (< isearch-other-end (point)) ; isearch-forward? |