(init_from_display_pos): Test invisible property
authorGerd Moellmann <gerd@gnu.org>
Sun, 25 Mar 2001 15:56:17 +0000 (15:56 +0000)
committerGerd Moellmann <gerd@gnu.org>
Sun, 25 Mar 2001 15:56:17 +0000 (15:56 +0000)
with TEXT_PROP_MEANS_INVISIBLE instead of NILP.

src/ChangeLog
src/xdisp.c

index ff7a6c6..1cc3d4d 100644 (file)
@@ -1,5 +1,8 @@
 2001-03-25  Gerd Moellmann  <gerd@gnu.org>
 
+       * xdisp.c (init_from_display_pos): Test invisible property
+       with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
+       
        * xdisp.c (redisplay_internal) <update one window>: Make sure
        last_arrow_position and last_arrow_string are set.
 
index b40d944..48fc7d7 100644 (file)
@@ -1764,7 +1764,7 @@ init_from_display_pos (it, w, pos)
       && (XSETWINDOW (window, w),
          prop = Fget_char_property (make_number (charpos),
                                     Qinvisible, window),
-         NILP (prop)))
+         !TEXT_PROP_MEANS_INVISIBLE (prop)))
     {
       prop = Fget_char_property (make_number (charpos - 1), Qinvisible,
                                 window);