[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#34476: fluffy whitespace in the mode-line, despite it running off th
From: |
martin rudalics |
Subject: |
bug#34476: fluffy whitespace in the mode-line, despite it running off the screen |
Date: |
Tue, 29 Dec 2020 18:04:50 +0100 |
> The function display_mode_line doesn't produce the updated mode-line
> contents for the selected window, it produces it for the window passed
> as its first argument W. So instead of this:
>
> && window_body_width (XWINDOW (selected_window), false) >=
>
> I think you should use this:
>
> && window_body_width (w, false) >=
Better
&& WINDOW_TOTAL_COLS (w) >=
because the mode line covers the entire width of the window (think of
those people using extra large margins).
martin