changeset 94236:0496bdb638d8

(doc-view-scroll-up-or-next-page): Don't use set-window-vscroll but image-scroll-down. Fixes a bug where a command following SPC scrolled up again.
author Tassilo Horn <tassilo@member.fsf.org>
date Tue, 22 Apr 2008 06:37:39 +0000
parents 37605d9673f1
children 96c9574f7f48
files lisp/doc-view.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/doc-view.el	Tue Apr 22 06:25:15 2008 +0000
+++ b/lisp/doc-view.el	Tue Apr 22 06:37:39 2008 +0000
@@ -434,7 +434,7 @@
     (let ((cur-page (doc-view-current-page)))
       (doc-view-next-page)
       (when (/= cur-page (doc-view-current-page))
-	(set-window-vscroll nil 0)))))
+	(image-scroll-down nil)))))
 
 (defun doc-view-scroll-down-or-previous-page ()
   "Scroll page down if possible, else goto previous page."