diff options
| author | Eli Zaretskii | 2014-07-01 20:07:24 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2014-07-01 20:07:24 +0300 |
| commit | ff6e6a42fcf9a3c7d42bd305d6a1f5c9079764ee (patch) | |
| tree | f9ceafce034b2309a680b211c82f8efbbf5ab4c3 /src/window.h | |
| parent | 3737a8efcf3a705c99a807e9c8574a89036dc3f3 (diff) | |
| download | emacs-ff6e6a42fcf9a3c7d42bd305d6a1f5c9079764ee.tar.gz emacs-ff6e6a42fcf9a3c7d42bd305d6a1f5c9079764ee.zip | |
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.h | 6 |
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 | |||
| 271 | int left_fringe_width; | 271 | int left_fringe_width; |
| 272 | int right_fringe_width; | 272 | int right_fringe_width; |
| 273 | 273 | ||
| 274 | /* Width of left and right marginal areas in columns. | 274 | /* Requested width of left and right marginal areas in columns. A |
| 275 | A value of 0 means no margin. */ | 275 | value of 0 means no margin. The actual values are recorded in |
| 276 | the window's glyph matrix, in the left_margin_glyphs and | ||
| 277 | right_margin_glyphs members. */ | ||
| 276 | int left_margin_cols; | 278 | int left_margin_cols; |
| 277 | int right_margin_cols; | 279 | int right_margin_cols; |
| 278 | 280 | ||