aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1993-11-23 08:31:03 +0000
committerRichard M. Stallman <[email protected]>1993-11-23 08:31:03 +0000
commit6ebbf1dcaf628240d30337cca99e0541006f0767 (patch)
tree004637749be442a34f3c29113ee33cad7e4de0dc
parent0744bf6404c89394dc3577556f923736ad8eb82c (diff)
(View-scroll-lines-forward):
Allow scrolling backward at the end of the buffer.
-rw-r--r--lisp/view.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/view.el b/lisp/view.el
index 4dad422d0c..1ecd68728d 100644
--- a/lisp/view.el
+++ b/lisp/view.el
@@ -332,7 +332,10 @@ mark ring."
No arg means whole window full, or number of lines set by \\[View-scroll-lines-forward-set-scroll-size].
Arg is number of lines to scroll."
(interactive "P")
- (if (pos-visible-in-window-p (point-max))
+ (if (and (pos-visible-in-window-p (point-max))
+ ;; Allow scrolling backward at the end of the buffer.
+ (or (null lines)
+ (> lines 0)))
(view-exit)
(setq lines
(if lines (prefix-numeric-value lines)