summaryrefslogtreecommitdiff
path: root/src/window.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2014-07-01 20:07:24 +0300
committerEli Zaretskii <eliz@gnu.org>2014-07-01 20:07:24 +0300
commitff6e6a42fcf9a3c7d42bd305d6a1f5c9079764ee (patch)
treef9ceafce034b2309a680b211c82f8efbbf5ab4c3 /src/window.h
parent3737a8efcf3a705c99a807e9c8574a89036dc3f3 (diff)
downloademacs-ff6e6a42fcf9a3c7d42bd305d6a1f5c9079764ee.tar.gz
Fix bug #17892 with mode/header line and display margins.
src/dispnew.c (prepare_desired_row): Accept 2 additional arguments: the window whose glyph row is being prepared and a flag whether it is for mode/header line. Make sure the glyph row's marginal areas are in sync with what the window wants. src/xdisp.c (display_line, display_mode_line): Call prepare_desired_row with additional arguments, as appropriate. src/dispextern.h (prepare_desired_row): Adjust prototype. src/window.h: Improve commentary of the marginal columns.
Diffstat (limited to 'src/window.h')
-rw-r--r--src/window.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/window.h b/src/window.h
index bdc5dddb7e5..b9c2b1f5ba8 100644
--- a/src/window.h
+++ b/src/window.h
@@ -271,8 +271,10 @@ struct window
int left_fringe_width;
int right_fringe_width;
- /* Width of left and right marginal areas in columns.
- A value of 0 means no margin. */
+ /* Requested width of left and right marginal areas in columns. A
+ value of 0 means no margin. The actual values are recorded in
+ the window's glyph matrix, in the left_margin_glyphs and
+ right_margin_glyphs members. */
int left_margin_cols;
int right_margin_cols;