Mercurial > emacs
changeset 25263:651362fe2962
(shrink-window-if-larger-than-buffer): Don't try to
back up from beginning of buffer.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Sun, 15 Aug 1999 04:56:33 +0000 |
parents | ccf83ed7326a |
children | 577683f84100 |
files | lisp/window.el |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/window.el Sat Aug 14 04:36:10 1999 +0000 +++ b/lisp/window.el Sun Aug 15 04:56:33 1999 +0000 @@ -280,7 +280,7 @@ (window-height (window-height))) ;; Don't try to redisplay with the cursor at the end ;; on its own line--that would force a scroll and spoil things. - (when (and (eobp) (bolp)) + (when (and (eobp) (bolp) (not (bobp))) (forward-char -1)) (when (> window-height (1+ text-height)) (shrink-window