mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
(shrink-window-if-larger-than-buffer): Don't try to
back up from beginning of buffer.
This commit is contained in:
parent
418b48fddf
commit
f848e2e028
1 changed files with 1 additions and 1 deletions
|
|
@ -280,7 +280,7 @@ or if the window is the only window of its frame."
|
|||
(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
|
||||
|
|
|
|||
Loading…
Reference in a new issue