aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
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}