]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug #18419 with disappearing line numbers when minibuffer is resized.
authorEli Zaretskii <eliz@gnu.org>
Sun, 7 Sep 2014 17:16:36 +0000 (20:16 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 7 Sep 2014 17:16:36 +0000 (20:16 +0300)
 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.

src/ChangeLog
src/dispnew.c

index a1d604b56d490d8588b930a52e8354190a07edf4..e834a2cc1612cb669f27b37eaddf9cfd44d326cf 100644 (file)
@@ -1,3 +1,9 @@
+2014-09-07  Eli Zaretskii  <eliz@gnu.org>
+
+       * 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.  (Bug#18419)
+
 2014-09-04  Eli Zaretskii  <eliz@gnu.org>
 
        * data.c (set_internal): Use assq_no_quit, not Fassq, to find an
index 9725068c72b1f3f2f5e48bdfb98c5e3ee1dbbaaa..5bdcb279be7525e1283470f17279d93b5d2e9104 100644 (file)
@@ -1083,8 +1083,7 @@ prepare_desired_row (struct window *w, struct glyph_row *row, bool mode_line_p)
       if (w->right_margin_cols > 0)
        row->glyphs[RIGHT_MARGIN_AREA] = row->glyphs[LAST_AREA];
     }
-  else if (row == MATRIX_MODE_LINE_ROW (w->desired_matrix)
-          || row == MATRIX_HEADER_LINE_ROW (w->desired_matrix))
+  else
     {
       /* The real number of glyphs reserved for the margins is
         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)
       int right = w->desired_matrix->right_margin_glyphs;
 
       /* Make sure the marginal areas of this row are in sync with
-        what the window wants, when the 1st/last row of the matrix
-        actually displays text and not header/mode line.  */
+        what the window wants, when the row actually displays text
+        and not header/mode line.  */
       if (w->left_margin_cols > 0
          && (left != row->glyphs[TEXT_AREA] - row->glyphs[LEFT_MARGIN_AREA]))
        row->glyphs[TEXT_AREA] = row->glyphs[LEFT_MARGIN_AREA] + left;