branch: elpa/dslide
commit d0e1177ab5e77e05ce9e0aa4edfb7198eed8a8cd
Author: Psionik K <73710933+psioni...@users.noreply.github.com>
Commit: Psionik K <73710933+psioni...@users.noreply.github.com>

    ensure correct scroll position in all windows
---
 dslide.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dslide.el b/dslide.el
index a13d46dec3..4a9cf9c42d 100644
--- a/dslide.el
+++ b/dslide.el
@@ -1587,7 +1587,9 @@ restriction, meaning no progress was made.")
         (run-hooks 'dslide-narrow-hook)
         (let ((dslide-header (oref obj header)))
           (dslide--make-header (null (oref obj breadcrumbs))))
-        (goto-char (point-min))         ; necessary to reset the scroll
+        (mapc
+         (lambda (w) (set-window-point wb (point-min))) ; reset the scroll
+         (get-buffer-window-list (current-buffer) nil t))
         ;; Return progress
         begin))))
 

Reply via email to