diff options
author | Noam Postavsky <npostavs@gmail.com> | 2017-08-10 20:43:13 -0400 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2017-08-19 23:29:28 -0400 |
commit | dbd3a17cb068148bd49e288eb0b44ca7eb4a4e3c (patch) | |
tree | da2f4025f0e1072e98a3df9d205eb2bbb9397290 /lisp/term.el | |
parent | 2326a3ab13d49f40115e9093bcf71d7d68c11772 (diff) | |
download | emacs-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.el | 2 |
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)) |