diff options
| author | Martin Rudalics | 2014-10-06 08:45:10 +0200 |
|---|---|---|
| committer | Martin Rudalics | 2014-10-06 08:45:10 +0200 |
| commit | e76955cbb521aee4af70a8c93d9f1be5f1d3f4a6 (patch) | |
| tree | a1723768bdbd850a1cc00be0b411e93bd201a3f0 /lisp | |
| parent | da55edac25ea1907da888f4c506cc20eac24d147 (diff) | |
| download | emacs-e76955cbb521aee4af70a8c93d9f1be5f1d3f4a6.tar.gz emacs-e76955cbb521aee4af70a8c93d9f1be5f1d3f4a6.zip | |
In term-window-width subtract 1 from width when any fringe has zero width. (Bug#18601)
* term.el (term-window-width): Subtract 1 from the width when
any fringe has zero width, not just the right fringe. (Bug#18601)
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/term.el | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d5eda032f74..5045e5d1469 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-10-06 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * term.el (term-window-width): Subtract 1 from the width when | ||
| 4 | any fringe has zero width, not just the right fringe. (Bug#18601) | ||
| 5 | |||
| 1 | 2014-10-05 Leo Liu <sdl.web@gmail.com> | 6 | 2014-10-05 Leo Liu <sdl.web@gmail.com> |
| 2 | 7 | ||
| 3 | * imenu.el (imenu-default-goto-function): Fix typo. | 8 | * imenu.el (imenu-default-goto-function): Fix typo. |
diff --git a/lisp/term.el b/lisp/term.el index ce6125e2790..f361b983e48 100644 --- a/lisp/term.el +++ b/lisp/term.el | |||
| @@ -974,6 +974,9 @@ is buffer-local." | |||
| 974 | (if (and (not (featurep 'xemacs)) | 974 | (if (and (not (featurep 'xemacs)) |
| 975 | (display-graphic-p) | 975 | (display-graphic-p) |
| 976 | overflow-newline-into-fringe | 976 | overflow-newline-into-fringe |
| 977 | ;; Subtract 1 from the width when any fringe has zero width, | ||
| 978 | ;; not just the right fringe. Bug#18601. | ||
| 979 | (/= (frame-parameter nil 'left-fringe) 0) | ||
| 977 | (/= (frame-parameter nil 'right-fringe) 0)) | 980 | (/= (frame-parameter nil 'right-fringe) 0)) |
| 978 | (window-body-width) | 981 | (window-body-width) |
| 979 | (1- (window-body-width)))) | 982 | (1- (window-body-width)))) |