summaryrefslogtreecommitdiff
path: root/lisp/term.el
diff options
context:
space:
mode:
authorJohn Shahid <jvshahid@gmail.com>2019-04-27 12:21:38 -0400
committerEli Zaretskii <eliz@gnu.org>2019-06-07 11:53:17 +0300
commitad9eadbe4ab9811d5b4091a18d7a09d325e75fb3 (patch)
tree4ebcc90a48e814504015b2c10fa8b3b4642cd610 /lisp/term.el
parent3a1f92d09bbcb4dbd2a2ebe1bee0e564e51c4615 (diff)
downloademacs-ad9eadbe4ab9811d5b4091a18d7a09d325e75fb3.tar.gz
Consider line spacing and font height when deriving proc window size
* lisp/window.el (window-adjust-process-window-size): Use window-screen-lines instead of window-body-height. * lisp/term.el (term-mode): Use window-screen-lines to set the initial window height.
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 553c3a1af4f..dec8f5a3178 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -1032,7 +1032,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) (window-text-height))
+ (set (make-local-variable 'term-height) (floor (window-screen-lines)))
(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))