diff options
| author | Karl Heuer | 1995-03-24 22:46:42 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-03-24 22:46:42 +0000 |
| commit | c7b6dfa6df76885853be8cadf06d8905e1310940 (patch) | |
| tree | ead0178b635304576cbe71838d32d356661dfcff /src | |
| parent | cd323f896b28b06145b2e0ad9f74ba6b425ee369 (diff) | |
| download | emacs-c7b6dfa6df76885853be8cadf06d8905e1310940.tar.gz emacs-c7b6dfa6df76885853be8cadf06d8905e1310940.zip | |
(Fnext_property_change): Fix previous change.
Diffstat (limited to 'src')
| -rw-r--r-- | src/textprop.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/textprop.c b/src/textprop.c index 7e92be89865..7f635777d0b 100644 --- a/src/textprop.c +++ b/src/textprop.c | |||
| @@ -618,7 +618,12 @@ past position LIMIT; return LIMIT if nothing is found before LIMIT.") | |||
| 618 | bother checking further intervals. */ | 618 | bother checking further intervals. */ |
| 619 | if (EQ (limit, Qt)) | 619 | if (EQ (limit, Qt)) |
| 620 | { | 620 | { |
| 621 | XSETFASTINT (pos, next->position - (STRINGP (object))); | 621 | if (NULL_INTERVAL_P (next)) |
| 622 | XSETFASTINT (pos, (STRINGP (object) | ||
| 623 | ? XSTRING (object)->size | ||
| 624 | : BUF_ZV (XBUFFER (object)))); | ||
| 625 | else | ||
| 626 | XSETFASTINT (pos, next->position - (STRINGP (object))); | ||
| 622 | return pos; | 627 | return pos; |
| 623 | } | 628 | } |
| 624 | 629 | ||