]> git.eshelyaron.com Git - emacs.git/commitdiff
* xdisp.c (handle_display_prop): Respect overlay window property.
authorKim F. Storm <storm@cua.dk>
Wed, 7 Sep 2005 21:59:36 +0000 (21:59 +0000)
committerKim F. Storm <storm@cua.dk>
Wed, 7 Sep 2005 21:59:36 +0000 (21:59 +0000)
src/xdisp.c

index ab3aae5fb91016e238f5fbfb140cb03d3de8ab71..33317f4c4911442ea22c82f5194e06ea432d6f62 100644 (file)
@@ -3428,7 +3428,7 @@ handle_display_prop (it)
     }
   else
     {
-      object = it->w->buffer;
+      XSETWINDOW (object, it->w);
       position = &it->current.pos;
     }
 
@@ -3449,6 +3449,9 @@ handle_display_prop (it)
   if (NILP (prop))
     return HANDLED_NORMALLY;
 
+  if (!STRINGP (it->string))
+    object = it->w->buffer;
+
   if (CONSP (prop)
       /* Simple properties.  */
       && !EQ (XCAR (prop), Qimage)