aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoakim Verona2012-12-25 18:46:41 +0100
committerJoakim Verona2012-12-25 18:46:41 +0100
commit403d846bbe170f53eb116dc184295be5f6dc3eda (patch)
treedac6d1045e6482239899ea3de1e0217169081fd2 /src
parent182e1475354570fb557549bd84aaf5084c944009 (diff)
parentf1665bdc87db38350a9fb0b497d2b14afbfa7140 (diff)
downloademacs-403d846bbe170f53eb116dc184295be5f6dc3eda.tar.gz
emacs-403d846bbe170f53eb116dc184295be5f6dc3eda.zip
auto upstream
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/window.c10
2 files changed, 12 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index dfe3e3818eb..a2b78cf5679 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
12012-12-25 Eli Zaretskii <eliz@gnu.org>
2
3 * window.c (window_body_cols): Subtract display margins from the
4 window body width on TTYs as well. See
5 http://lists.gnu.org/archive/html/help-gnu-emacs/2012-12/msg00317.html
6 for the original report.
7
12012-12-25 Dmitry Antipov <dmantipov@yandex.ru> 82012-12-25 Dmitry Antipov <dmantipov@yandex.ru>
2 9
3 * xdisp.c (redisplay_window): Remove inner local variable 10 * xdisp.c (redisplay_window): Remove inner local variable
diff --git a/src/window.c b/src/window.c
index 61a8ae00e8c..1ca2b103b3f 100644
--- a/src/window.c
+++ b/src/window.c
@@ -802,12 +802,12 @@ window_body_cols (struct window *w)
802 occupies one column only. */ 802 occupies one column only. */
803 width -= 1; 803 width -= 1;
804 804
805 /* Display margins cannot be used for normal text. */
806 width -= WINDOW_LEFT_MARGIN_COLS (w) + WINDOW_RIGHT_MARGIN_COLS (w);
807
805 if (FRAME_WINDOW_P (f)) 808 if (FRAME_WINDOW_P (f))
806 /* On window-systems, fringes and display margins cannot be 809 /* On window-systems, fringes cannot be used for normal text. */
807 used for normal text. */ 810 width -= WINDOW_FRINGE_COLS (w);
808 width -= (WINDOW_FRINGE_COLS (w)
809 + WINDOW_LEFT_MARGIN_COLS (w)
810 + WINDOW_RIGHT_MARGIN_COLS (w));
811 811
812 return width; 812 return width;
813} 813}