From f87c0a98c7ede0c976b5b72f899abef1c06567b1 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 9 Feb 2002 09:21:17 +0000 Subject: [PATCH] (display_mode_lines): Fix last change. --- src/xdisp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index dff53b80b86..90c36e495a2 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -13433,8 +13433,10 @@ display_mode_lines (w) if (WINDOW_WANTS_MODELINE_P (w)) { + struct window *old_w = XWINDOW (old_selected_window); + /* Select mode line face based on the real selected window. */ - display_mode_line (w, CURRENT_MODE_LINE_FACE_ID (old_selected_window), + display_mode_line (w, CURRENT_MODE_LINE_FACE_ID (old_w), current_buffer->mode_line_format); ++n; } -- 2.39.5