]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix compilation warning/error in --without-x builds
authorEli Zaretskii <eliz@gnu.org>
Mon, 8 Jun 2015 18:15:05 +0000 (21:15 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 8 Jun 2015 18:15:05 +0000 (21:15 +0300)
* src/xdisp.c (append_space_for_newline): Condition GUI-specific
code on HAVE_WINDOW_SYSTEM.

src/xdisp.c

index 14385fa84214bd3c19216787478a43381ba43fc2..f0e30900043cdc90e6be82c52d9218539759dbef 100644 (file)
@@ -19200,6 +19200,7 @@ append_space_for_newline (struct it *it, bool default_face_p)
 
          PRODUCE_GLYPHS (it);
 
+#ifdef HAVE_WINDOW_SYSTEM
          /* Make sure this space glyph has the right ascent and
             descent values, or else cursor at end of line will look
             funny.  */
@@ -19216,6 +19217,7 @@ append_space_for_newline (struct it *it, bool default_face_p)
 
          g->ascent = it->max_ascent;
          g->descent = it->max_descent;
+#endif
 
          it->override_ascent = -1;
          it->constrain_row_ascent_descent_p = false;