]> git.eshelyaron.com Git - emacs.git/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>
Tue, 26 Apr 2016 18:58:52 +0000 (20:58 +0200)
commit5b5403289888efe8783ae6a405845b925f544ec1
tree1fb6846e55de662653e8af049154a1af4c1a2953
parent07d729130e5774fc484ba324d9149d4c6f008260
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'.
lisp/term.el
lisp/window.el