diff options
| author | Gerd Moellmann | 2000-05-25 15:53:05 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-05-25 15:53:05 +0000 |
| commit | eadc0bf89c04df826c96ebff62fb2a73fe6d11c3 (patch) | |
| tree | 90b9a46e328f6fb181876608190e1d300792b0f7 /src | |
| parent | 14028d571b4058de7320aac9c69029944689e6f2 (diff) | |
| download | emacs-eadc0bf89c04df826c96ebff62fb2a73fe6d11c3.tar.gz emacs-eadc0bf89c04df826c96ebff62fb2a73fe6d11c3.zip | |
(handle_invisible_prop): Don't try to skip over
invisible text if end of text is already reached.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index fef2b9429c8..0171f963f34 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -2046,7 +2046,8 @@ handle_invisible_prop (it) | |||
| 2046 | XSETFASTINT (charpos, IT_STRING_CHARPOS (*it)); | 2046 | XSETFASTINT (charpos, IT_STRING_CHARPOS (*it)); |
| 2047 | prop = Fget_text_property (charpos, Qinvisible, it->string); | 2047 | prop = Fget_text_property (charpos, Qinvisible, it->string); |
| 2048 | 2048 | ||
| 2049 | if (!NILP (prop)) | 2049 | if (!NILP (prop) |
| 2050 | && IT_STRING_CHARPOS (*it) < it->end_charpos) | ||
| 2050 | { | 2051 | { |
| 2051 | handled = HANDLED_RECOMPUTE_PROPS; | 2052 | handled = HANDLED_RECOMPUTE_PROPS; |
| 2052 | 2053 | ||
| @@ -2100,7 +2101,8 @@ handle_invisible_prop (it) | |||
| 2100 | prop = Fget_char_property (pos, Qinvisible, it->window); | 2101 | prop = Fget_char_property (pos, Qinvisible, it->window); |
| 2101 | 2102 | ||
| 2102 | /* If we are on invisible text, skip over it. */ | 2103 | /* If we are on invisible text, skip over it. */ |
| 2103 | if (TEXT_PROP_MEANS_INVISIBLE (prop)) | 2104 | if (TEXT_PROP_MEANS_INVISIBLE (prop) |
| 2105 | && IT_CHARPOS (*it) < it->end_charpos) | ||
| 2104 | { | 2106 | { |
| 2105 | /* Record whether we have to display an ellipsis for the | 2107 | /* Record whether we have to display an ellipsis for the |
| 2106 | invisible text. */ | 2108 | invisible text. */ |