aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2013-12-16 21:29:04 +0200
committerEli Zaretskii2013-12-16 21:29:04 +0200
commit5e6d03b2abd37151ae1329c4b98edfa8242d2f0f (patch)
treeb7ad76bb208c632485fc6f9c9055b571f8ba139a /src
parent39cb42c6213248c07f298be04c79b606be7d431d (diff)
downloademacs-5e6d03b2abd37151ae1329c4b98edfa8242d2f0f.tar.gz
emacs-5e6d03b2abd37151ae1329c4b98edfa8242d2f0f.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/xdisp.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index ae154994da1..e2ff15e4291 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -3,6 +3,8 @@
3 * xdisp.c (Fmove_point_visually): Fix subtle bugs in the fallback 3 * xdisp.c (Fmove_point_visually): Fix subtle bugs in the fallback
4 code, revealed in presence of R2L characters, character 4 code, revealed in presence of R2L characters, character
5 compositions, and display vectors. A better fix for Bug#16148. 5 compositions, and display vectors. A better fix for Bug#16148.
6 (extend_face_to_end_of_line): Don't reference tool_bar_window in
7 GTK and NS builds, they don't have this member of struct frame.
6 8
7 * dispextern.h (struct composition_it): Correct a comment for the 9 * dispextern.h (struct composition_it): Correct a comment for the
8 'width' member. 10 '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)
18866 /* Mode line and the header line don't have margins, and 18866 /* Mode line and the header line don't have margins, and
18867 likewise the frame's tool-bar window, if there is any. */ 18867 likewise the frame's tool-bar window, if there is any. */
18868 if (!(it->glyph_row->mode_line_p 18868 if (!(it->glyph_row->mode_line_p
18869#if defined (HAVE_WINDOW_SYSTEM) && ! defined (USE_GTK) && ! defined (HAVE_NS)
18869 || (WINDOWP (f->tool_bar_window) 18870 || (WINDOWP (f->tool_bar_window)
18870 && it->w == XWINDOW (f->tool_bar_window)))) 18871 && it->w == XWINDOW (f->tool_bar_window))
18872#endif
18873 ))
18871 { 18874 {
18872 if (WINDOW_LEFT_MARGIN_WIDTH (it->w) > 0 18875 if (WINDOW_LEFT_MARGIN_WIDTH (it->w) > 0
18873 && it->glyph_row->used[LEFT_MARGIN_AREA] == 0) 18876 && it->glyph_row->used[LEFT_MARGIN_AREA] == 0)