]> code.delx.au - gnu-emacs/commitdiff
Honor prefix arg in doc-view-next-line-or-next-page
authorMarcin Borkowski <mbork@mbork.pl>
Mon, 14 Mar 2016 10:15:10 +0000 (11:15 +0100)
committerTassilo Horn <tsdh@gnu.org>
Fri, 18 Mar 2016 21:46:42 +0000 (22:46 +0100)
* lisp/doc-view.el (doc-view-next-line-or-next-page): Take the
prefix argument into consideration when continuous scrolling is
not in effect (i.e., by default) (bug#19559).

lisp/doc-view.el

index 9d912c3f6d994fb3a3e0adcccd712e4ee9ff3edf..223565cedb6a639d66ba6d152cf73ea58ec6026a 100644 (file)
@@ -626,7 +626,7 @@ at the bottom edge of the page moves to the next page."
            (image-bob)
            (image-bol 1))
          (set-window-hscroll (selected-window) hscroll)))
-    (image-next-line 1)))
+    (image-next-line arg)))
 
 (defun doc-view-previous-line-or-previous-page (&optional arg)
   "Scroll downward by ARG lines if possible, else goto previous page.