summaryrefslogtreecommitdiff
path: root/lisp/term.el
diff options
context:
space:
mode:
authorNoam Postavsky <npostavs@gmail.com>2017-08-10 20:43:13 -0400
committerNoam Postavsky <npostavs@gmail.com>2017-08-19 23:29:28 -0400
commitdbd3a17cb068148bd49e288eb0b44ca7eb4a4e3c (patch)
treeda2f4025f0e1072e98a3df9d205eb2bbb9397290 /lisp/term.el
parent2326a3ab13d49f40115e9093bcf71d7d68c11772 (diff)
downloademacs-dbd3a17cb068148bd49e288eb0b44ca7eb4a4e3c.tar.gz
* lisp/term.el (term-mode): Use `window-text-height' (Bug#5615).
Diffstat (limited to 'lisp/term.el')
-rw-r--r--lisp/term.el2
1 files changed, 1 insertions, 1 deletions
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))