diff options
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/window.c b/src/window.c index a7d30b7a467..3fca5b7351e 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -801,12 +801,12 @@ window_body_cols (struct window *w) | |||
| 801 | occupies one column only. */ | 801 | occupies one column only. */ |
| 802 | width -= 1; | 802 | width -= 1; |
| 803 | 803 | ||
| 804 | /* Display margins cannot be used for normal text. */ | ||
| 805 | width -= WINDOW_LEFT_MARGIN_COLS (w) + WINDOW_RIGHT_MARGIN_COLS (w); | ||
| 806 | |||
| 804 | if (FRAME_WINDOW_P (f)) | 807 | if (FRAME_WINDOW_P (f)) |
| 805 | /* On window-systems, fringes and display margins cannot be | 808 | /* On window-systems, fringes cannot be used for normal text. */ |
| 806 | used for normal text. */ | 809 | width -= WINDOW_FRINGE_COLS (w); |
| 807 | width -= (WINDOW_FRINGE_COLS (w) | ||
| 808 | + WINDOW_LEFT_MARGIN_COLS (w) | ||
| 809 | + WINDOW_RIGHT_MARGIN_COLS (w)); | ||
| 810 | 810 | ||
| 811 | return width; | 811 | return width; |
| 812 | } | 812 | } |