• Eli Zaretskii's avatar
    Fix redisplay when mode-line-format changes mode-line's height · 37f9182b
    Eli Zaretskii authored
    * lisp/frame.el (top-level): Add mode-line-format,
    tab-line-format, and header-line-format to the list of variables
    that should trigger an immediate redisplay of the buffer's
    window.  This fixes redisplay of windows when the mode line
    changes its height.
    
    * src/xdisp.c (window_box_height): Use the window's
    mode_line_height, tab_line_height, and header_line_height fields
    in preference to CURRENT_MODE_LINE_HEIGHT,
    CURRENT_TAB_LINE_HEIGHT, and CURRENT_HEADER_LINE_HEIGHT,
    respectively.  This fixes display of vertical scroll bar when the
    height of the window's mode line changes.
    * src/dispnew.c (adjust_glyph_matrix): When resizing a window's
    matrix, reset the mode_line_p flag of the previous mode-line row,
    so that the window_box_height, CURRENT_MODE_LINE_HEIGHT, and their
    ilk won't use stale info.  (Bug#38828)
    37f9182b