X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/07976ae3b816dea4fd541bbba862603d3132eb2c..fa8678ebb05c28c54f114727a0bec7453903dbf0:/lisp/reposition.el diff --git a/lisp/reposition.el b/lisp/reposition.el index f6699f8c08..ec5f5a1dde 100644 --- a/lisp/reposition.el +++ b/lisp/reposition.el @@ -1,11 +1,10 @@ ;;; reposition.el --- center a Lisp function or comment on the screen -;; Copyright (C) 1991, 1994, 2001, 2002, 2003, 2004, 2005, 2006, 2007, -;; 2008, 2009, 2010 Free Software Foundation, Inc. +;; Copyright (C) 1991, 1994, 2001-2014 Free Software Foundation, Inc. ;; Author: Michael D. Ernst ;; Created: Jan 1991 -;; Maintainer: FSF +;; Maintainer: emacs-devel@gnu.org ;; This file is part of GNU Emacs. @@ -62,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.