diff options
| author | Eli Zaretskii | 2014-09-07 20:16:36 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2014-09-07 20:16:36 +0300 |
| commit | 938aed6ef8c0f6ad609c791b1549580b261a5f12 (patch) | |
| tree | fe615ff2c3eba6918caf7a297e5cd107644443b3 /src | |
| parent | 6ac5571c627d3f2e06ccd82a7926871065597e43 (diff) | |
| download | emacs-938aed6ef8c0f6ad609c791b1549580b261a5f12.tar.gz emacs-938aed6ef8c0f6ad609c791b1549580b261a5f12.zip | |
Fix bug #18419 with disappearing line numbers when minibuffer is resized.
src/dispnew.c (prepare_desired_row): When MODE_LINE_P is zero,
always make sure the marginal areas of the row are in sync with
what the window wants.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/dispnew.c | 7 |
2 files changed, 9 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index a1d604b56d4..e834a2cc161 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2014-09-07 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * dispnew.c (prepare_desired_row): When MODE_LINE_P is zero, | ||
| 4 | always make sure the marginal areas of the row are in sync with | ||
| 5 | what the window wants. (Bug#18419) | ||
| 6 | |||
| 1 | 2014-09-04 Eli Zaretskii <eliz@gnu.org> | 7 | 2014-09-04 Eli Zaretskii <eliz@gnu.org> |
| 2 | 8 | ||
| 3 | * data.c (set_internal): Use assq_no_quit, not Fassq, to find an | 9 | * data.c (set_internal): Use assq_no_quit, not Fassq, to find an |
diff --git a/src/dispnew.c b/src/dispnew.c index 9725068c72b..5bdcb279be7 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -1083,8 +1083,7 @@ prepare_desired_row (struct window *w, struct glyph_row *row, bool mode_line_p) | |||
| 1083 | if (w->right_margin_cols > 0) | 1083 | if (w->right_margin_cols > 0) |
| 1084 | row->glyphs[RIGHT_MARGIN_AREA] = row->glyphs[LAST_AREA]; | 1084 | row->glyphs[RIGHT_MARGIN_AREA] = row->glyphs[LAST_AREA]; |
| 1085 | } | 1085 | } |
| 1086 | else if (row == MATRIX_MODE_LINE_ROW (w->desired_matrix) | 1086 | else |
| 1087 | || row == MATRIX_HEADER_LINE_ROW (w->desired_matrix)) | ||
| 1088 | { | 1087 | { |
| 1089 | /* The real number of glyphs reserved for the margins is | 1088 | /* The real number of glyphs reserved for the margins is |
| 1090 | recorded in the glyph matrix, and can be different from | 1089 | recorded in the glyph matrix, and can be different from |
| @@ -1094,8 +1093,8 @@ prepare_desired_row (struct window *w, struct glyph_row *row, bool mode_line_p) | |||
| 1094 | int right = w->desired_matrix->right_margin_glyphs; | 1093 | int right = w->desired_matrix->right_margin_glyphs; |
| 1095 | 1094 | ||
| 1096 | /* Make sure the marginal areas of this row are in sync with | 1095 | /* Make sure the marginal areas of this row are in sync with |
| 1097 | what the window wants, when the 1st/last row of the matrix | 1096 | what the window wants, when the row actually displays text |
| 1098 | actually displays text and not header/mode line. */ | 1097 | and not header/mode line. */ |
| 1099 | if (w->left_margin_cols > 0 | 1098 | if (w->left_margin_cols > 0 |
| 1100 | && (left != row->glyphs[TEXT_AREA] - row->glyphs[LEFT_MARGIN_AREA])) | 1099 | && (left != row->glyphs[TEXT_AREA] - row->glyphs[LEFT_MARGIN_AREA])) |
| 1101 | row->glyphs[TEXT_AREA] = row->glyphs[LEFT_MARGIN_AREA] + left; | 1100 | row->glyphs[TEXT_AREA] = row->glyphs[LEFT_MARGIN_AREA] + left; |