1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-05 19:31:02 -08:00

* view.el (view-recenter): Allow recenter to compute window height

normally.
This commit is contained in:
Chong Yidong 2009-05-26 14:37:51 +00:00
parent 66bb84855f
commit f2872f04a4
2 changed files with 7 additions and 2 deletions

View file

@ -757,8 +757,8 @@ previous state and go to previous buffer or window."
;; (setq this-command view-last-command-entry))
(defun view-recenter ()
;; Center point in window.
(recenter (/ (view-window-size) 2)))
;; Recenter point in window and redisplay normally.
(recenter '(1)))
(defun view-page-size-default (lines)
;; Get page size.