diff options
| -rw-r--r-- | lisp/view.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/view.el b/lisp/view.el index 4dad422d0c1..1ecd68728dd 100644 --- a/lisp/view.el +++ b/lisp/view.el | |||
| @@ -332,7 +332,10 @@ mark ring." | |||
| 332 | No arg means whole window full, or number of lines set by \\[View-scroll-lines-forward-set-scroll-size]. | 332 | No arg means whole window full, or number of lines set by \\[View-scroll-lines-forward-set-scroll-size]. |
| 333 | Arg is number of lines to scroll." | 333 | Arg is number of lines to scroll." |
| 334 | (interactive "P") | 334 | (interactive "P") |
| 335 | (if (pos-visible-in-window-p (point-max)) | 335 | (if (and (pos-visible-in-window-p (point-max)) |
| 336 | ;; Allow scrolling backward at the end of the buffer. | ||
| 337 | (or (null lines) | ||
| 338 | (> lines 0))) | ||
| 336 | (view-exit) | 339 | (view-exit) |
| 337 | (setq lines | 340 | (setq lines |
| 338 | (if lines (prefix-numeric-value lines) | 341 | (if lines (prefix-numeric-value lines) |