In term-window-width call window-text-width instead of window-width (Bug#16470).

* term.el (term-window-width): Call window-text-width instead of
window-width (Bug#16470).
This commit is contained in:
Martin Rudalics 2014-01-19 10:24:26 +01:00
parent d70efef4a8
commit 4ff6d92ddd
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2014-01-19 Martin Rudalics <rudalics@gmx.at>
* term.el (term-window-width): Call window-text-width instead of
window-width (Bug#16470).
2014-01-18 Paul Eggert <eggert@cs.ucla.edu>
* simple.el (password-word-equivalents): Remove duplicates.

View file

@ -975,7 +975,8 @@ is buffer-local."
(display-graphic-p)
overflow-newline-into-fringe
(/= (frame-parameter nil 'right-fringe) 0))
(window-width)
;; Call window-text-width instead of window-width (Bug#16470).
(window-text-width)
(1- (window-width))))