From 5e6d03b2abd37151ae1329c4b98edfa8242d2f0f Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 16 Dec 2013 21:29:04 +0200 Subject: [PATCH] Fix compilation errors introduced by changes in extend_face_to_end_of_line. src/xdisp.c (extend_face_to_end_of_line): Don't reference tool_bar_window in GTK and NS builds, they don't have this member of struct frame. Fixes: debbugs:16165 --- src/ChangeLog | 2 ++ src/xdisp.c | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index ae154994da1..e2ff15e4291 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -3,6 +3,8 @@ * xdisp.c (Fmove_point_visually): Fix subtle bugs in the fallback code, revealed in presence of R2L characters, character compositions, and display vectors. A better fix for Bug#16148. + (extend_face_to_end_of_line): Don't reference tool_bar_window in + GTK and NS builds, they don't have this member of struct frame. * dispextern.h (struct composition_it): Correct a comment for the 'width' member. diff --git a/src/xdisp.c b/src/xdisp.c index a0332a16503..0d3f473b6f1 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -18866,8 +18866,11 @@ extend_face_to_end_of_line (struct it *it) /* Mode line and the header line don't have margins, and likewise the frame's tool-bar window, if there is any. */ if (!(it->glyph_row->mode_line_p +#if defined (HAVE_WINDOW_SYSTEM) && ! defined (USE_GTK) && ! defined (HAVE_NS) || (WINDOWP (f->tool_bar_window) - && it->w == XWINDOW (f->tool_bar_window)))) + && it->w == XWINDOW (f->tool_bar_window)) +#endif + )) { if (WINDOW_LEFT_MARGIN_WIDTH (it->w) > 0 && it->glyph_row->used[LEFT_MARGIN_AREA] == 0) -- 2.39.2