]> git.eshelyaron.com Git - emacs.git/commitdiff
(direct_output_forward_char): Use Fget_char_property to test for invisibility.
authorKarl Heuer <kwzh@gnu.org>
Thu, 24 Feb 1994 20:08:54 +0000 (20:08 +0000)
committerKarl Heuer <kwzh@gnu.org>
Thu, 24 Feb 1994 20:08:54 +0000 (20:08 +0000)
src/dispnew.c

index 432cffea4b9109a71bb86844f207deaf6dc7bc55..b348cefe1340af684d2b8c7a991534e4125bec2d 100644 (file)
@@ -953,17 +953,17 @@ direct_output_forward_char (n)
 
   XFASTINT (position) = point;
   if (XFASTINT (position) < ZV
-      && ! NILP (Fget_text_property (position,
+      && ! NILP (Fget_char_property (position,
                                     Qinvisible,
-                                    Fcurrent_buffer ())))
-    return;
+                                    selected_window)))
+    return 0;
 
   XFASTINT (position) = point - 1;
   if (XFASTINT (position) >= BEGV
-      && ! NILP (Fget_text_property (position,
+      && ! NILP (Fget_char_property (position,
                                     Qinvisible,
-                                    Fcurrent_buffer ())))
-    return;
+                                    selected_window)))
+    return 0;
 #endif
 
   FRAME_CURSOR_X (frame) += n;