aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
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/window.c
parent182e1475354570fb557549bd84aaf5084c944009 (diff)
parentf1665bdc87db38350a9fb0b497d2b14afbfa7140 (diff)
downloademacs-403d846bbe170f53eb116dc184295be5f6dc3eda.tar.gz
emacs-403d846bbe170f53eb116dc184295be5f6dc3eda.zip
auto upstream
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c10
1 files changed, 5 insertions, 5 deletions
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}