aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1994-02-24 20:08:54 +0000
committerKarl Heuer1994-02-24 20:08:54 +0000
commit294634fb26b089d47749d49c75fff5b1057fd4d8 (patch)
tree405322c0ba1adfbcae746c65d9788e1733e4ace3 /src
parentef4d2f9e96372995b4744151e33e56d58586004e (diff)
downloademacs-294634fb26b089d47749d49c75fff5b1057fd4d8.tar.gz
emacs-294634fb26b089d47749d49c75fff5b1057fd4d8.zip
(direct_output_forward_char): Use Fget_char_property to test for invisibility.
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 432cffea4b9..b348cefe134 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -953,17 +953,17 @@ direct_output_forward_char (n)
953 953
954 XFASTINT (position) = point; 954 XFASTINT (position) = point;
955 if (XFASTINT (position) < ZV 955 if (XFASTINT (position) < ZV
956 && ! NILP (Fget_text_property (position, 956 && ! NILP (Fget_char_property (position,
957 Qinvisible, 957 Qinvisible,
958 Fcurrent_buffer ()))) 958 selected_window)))
959 return; 959 return 0;
960 960
961 XFASTINT (position) = point - 1; 961 XFASTINT (position) = point - 1;
962 if (XFASTINT (position) >= BEGV 962 if (XFASTINT (position) >= BEGV
963 && ! NILP (Fget_text_property (position, 963 && ! NILP (Fget_char_property (position,
964 Qinvisible, 964 Qinvisible,
965 Fcurrent_buffer ()))) 965 selected_window)))
966 return; 966 return 0;
967#endif 967#endif
968 968
969 FRAME_CURSOR_X (frame) += n; 969 FRAME_CURSOR_X (frame) += n;