X-Git-Url: https://git.hcoop.net/bpt/emacs.git/blobdiff_plain/bd358779861f265a7acff31ead40172735af693e..e831604df6fa74c1cbe978d63837313c2b8de9ed:/lisp/reposition.el diff --git a/lisp/reposition.el b/lisp/reposition.el index 0bd2765406..1c6a546c44 100644 --- a/lisp/reposition.el +++ b/lisp/reposition.el @@ -1,6 +1,6 @@ ;;; reposition.el --- center a Lisp function or comment on the screen -;; Copyright (C) 1991, 1994, 2001-2013 Free Software Foundation, Inc. +;; Copyright (C) 1991, 1994, 2001-2014 Free Software Foundation, Inc. ;; Author: Michael D. Ernst ;; Created: Jan 1991 @@ -61,7 +61,7 @@ first comment line visible (if point is in a comment)." (here (point)) ;; change this name once I've gotten rid of references to ht. ;; this is actually the number of the last screen line - (ht (- (window-height (selected-window)) 2)) + (ht (- (window-height) 2)) (line (repos-count-screen-lines (window-start) (point))) (comment-height ;; The call to max deals with the case of cursor between defuns.