From: Noam Postavsky Date: Fri, 11 Aug 2017 00:43:13 +0000 (-0400) Subject: * lisp/term.el (term-mode): Use `window-text-height' (Bug#5615). X-Git-Tag: emacs-26.0.90~400 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dbd3a17cb068148bd49e288eb0b44ca7eb4a4e3c;p=emacs.git * lisp/term.el (term-mode): Use `window-text-height' (Bug#5615). --- diff --git a/lisp/term.el b/lisp/term.el index 5eb7b3e8ede..12a37cafbe1 100644 --- a/lisp/term.el +++ b/lisp/term.el @@ -1007,7 +1007,7 @@ Entry to this mode runs the hooks on `term-mode-hook'." (setq indent-tabs-mode nil) (setq buffer-display-table term-display-table) (set (make-local-variable 'term-home-marker) (copy-marker 0)) - (set (make-local-variable 'term-height) (1- (window-height))) + (set (make-local-variable 'term-height) (window-text-height)) (set (make-local-variable 'term-width) (window-max-chars-per-line)) (set (make-local-variable 'term-last-input-start) (make-marker)) (set (make-local-variable 'term-last-input-end) (make-marker))