]> git.eshelyaron.com Git - emacs.git/commitdiff
(display_mode_line): Highlight partial-width mode lines
authorRichard M. Stallman <rms@gnu.org>
Thu, 10 Mar 1994 00:23:35 +0000 (00:23 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 10 Mar 1994 00:23:35 +0000 (00:23 +0000)
for a non-termcal frame.

src/xdisp.c

index 7a3a84e221e143357fba29982bcfda9a8d31c9b3..d2e5966049abfe8cb1c99f64efb6c1dc3107bf8d 100644 (file)
@@ -2461,6 +2461,14 @@ display_mode_line (w)
   if (XFASTINT (w->width) == FRAME_WIDTH (f)
       || XFASTINT (XWINDOW (w->parent)->width) == FRAME_WIDTH (f))
     FRAME_DESIRED_GLYPHS (f)->highlight[vpos] = mode_line_inverse_video;
+  else if (! FRAME_TERMCAP_P (f))
+    {
+      /* For a partial width window, explicitly set face of each glyph. */
+      int i;
+      GLYPH *ptr = FRAME_DESIRED_GLYPHS (f)->glyphs[vpos];
+      for (i = left; i < right; ++i)
+       ptr[i] = MAKE_GLYPH (GLYPH_CHAR (ptr[i]), 1);
+    }
 
 #ifdef HAVE_X_WINDOWS
   /* I'm trying this out because I saw Unimpress use it, but it's