]> code.delx.au - gnu-emacs/commit
Fix bug#22891: wrong terminal width when a fringe width is zero.
authorAnders Lindgren <andlind@gmail.com>
Tue, 26 Apr 2016 18:58:52 +0000 (20:58 +0200)
committerAnders Lindgren <andlind@gmail.com>
Wed, 27 Apr 2016 21:28:07 +0000 (23:28 +0200)
commitff7e201ed87d206334afedd4366deebba440efde
tree5d49a00bcb70bf5443748d69bac1da2581e4a57c
parent71fb0e06e7e04d8300be10feffd3d314a76b4d27
Fix bug#22891: wrong terminal width when a fringe width is zero.

When either fringe width is zero, Emacs reserved one column for a
continuation glyph. Terminal windows does not take this into
account when the frame is resized.

* lisp/window.el (window-adjust-process-window-size): Use
`window-max-chars-per-line' instead of `window-body-width'.
* lisp/term.el (term-window-width): Remove function. (It does the
same as `window-max-chars-per-line' but without recent bug fixes.)
(term-mode): Use `window-max-chars-per-line' instead of
`term-window-width'.

Backport

(cherry picked from commit 5b5403289888efe8783ae6a405845b925f544ec1)
lisp/term.el
lisp/window.el