aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/doc-view.el
diff options
context:
space:
mode:
authorTassilo Horn <[email protected]>2008-04-22 06:38:12 +0000
committerTassilo Horn <[email protected]>2008-04-22 06:38:12 +0000
commitd5793be30c516653c280823735265f700807f8b3 (patch)
tree431cdda73233940fb907121a4f3319892b1e8872 /lisp/doc-view.el
parent01a369030e39cc7af7fe38d69450a4233f9bd45e (diff)
(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.
Diffstat (limited to 'lisp/doc-view.el')
-rw-r--r--lisp/doc-view.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/doc-view.el b/lisp/doc-view.el
index 834c661af4..7d2988f971 100644
--- a/lisp/doc-view.el
+++ b/lisp/doc-view.el
@@ -434,7 +434,7 @@ Can be `dvi', `pdf', or `ps'.")
(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."