diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2001-11-26 02:16:59 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2001-11-26 02:16:59 +0000 |
commit | 201ffa579a8caaf0eaf71a8ba66d509c649e437c (patch) | |
tree | d655fa28522461f5163e7d28cc82bcc718f7b944 /src/intervals.c | |
parent | 6108b49c0a0681fb08882515d4d434fc173e7164 (diff) | |
download | emacs-201ffa579a8caaf0eaf71a8ba66d509c649e437c.tar.gz |
(graft_intervals_into_buffer):
Don't call set_text_properties_1 on an empty interval.
Diffstat (limited to 'src/intervals.c')
-rw-r--r-- | src/intervals.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intervals.c b/src/intervals.c index b55cd64e45e..c1a088b1065 100644 --- a/src/intervals.c +++ b/src/intervals.c @@ -1690,7 +1690,7 @@ graft_intervals_into_buffer (source, position, length, buffer, inherit) if (NULL_INTERVAL_P (source)) { Lisp_Object buf; - if (!inherit && ! NULL_INTERVAL_P (tree)) + if (!inherit && !NULL_INTERVAL_P (tree) && length > 0) { XSETBUFFER (buf, buffer); set_text_properties_1 (make_number (position), |