diff options
Diffstat (limited to 'lisp/reposition.el')
-rw-r--r-- | lisp/reposition.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/reposition.el b/lisp/reposition.el index 0bd27654065..c67200f9550 100644 --- a/lisp/reposition.el +++ b/lisp/reposition.el @@ -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. |