aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1999-08-15 04:56:33 +0000
committerKarl Heuer1999-08-15 04:56:33 +0000
commitf848e2e028ca57179e318a3cff344e2de87ac880 (patch)
treebea48e9ff8723942cde2aff89d2e4a2a312024eb
parent418b48fddf54a24220d4d9ab31a28e709473d1c7 (diff)
downloademacs-f848e2e028ca57179e318a3cff344e2de87ac880.tar.gz
emacs-f848e2e028ca57179e318a3cff344e2de87ac880.zip
(shrink-window-if-larger-than-buffer): Don't try to
back up from beginning of buffer.
-rw-r--r--lisp/window.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/window.el b/lisp/window.el
index 6010f894791..c26b79af485 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -280,7 +280,7 @@ or if the window is the only window of its frame."
280 (window-height (window-height))) 280 (window-height (window-height)))
281 ;; Don't try to redisplay with the cursor at the end 281 ;; Don't try to redisplay with the cursor at the end
282 ;; on its own line--that would force a scroll and spoil things. 282 ;; on its own line--that would force a scroll and spoil things.
283 (when (and (eobp) (bolp)) 283 (when (and (eobp) (bolp) (not (bobp)))
284 (forward-char -1)) 284 (forward-char -1))
285 (when (> window-height (1+ text-height)) 285 (when (> window-height (1+ text-height))
286 (shrink-window 286 (shrink-window