]> git.eshelyaron.com Git - emacs.git/commitdiff
In term-window-width call window-text-width instead of window-width (Bug#16470).
authorMartin Rudalics <rudalics@gmx.at>
Sun, 19 Jan 2014 09:24:26 +0000 (10:24 +0100)
committerMartin Rudalics <rudalics@gmx.at>
Sun, 19 Jan 2014 09:24:26 +0000 (10:24 +0100)
* term.el (term-window-width): Call window-text-width instead of
window-width (Bug#16470).

lisp/ChangeLog
lisp/term.el

index 798967e09e5b65095bc3e014ac76022bf4f43b27..471be5eee78e216c6fc8e2ddc9b8607956d892ca 100644 (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.
index 2a6915f983bd302050ba2b81d696f89991551aa7..6647e3e32ea498031603df97af3a4116754bded1 100644 (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))))
 
 \f