aboutsummaryrefslogtreecommitdiffstats
path: root/src/textprop.c
diff options
context:
space:
mode:
authorDaniel Colascione <[email protected]>2014-01-13 15:41:43 -0800
committerDaniel Colascione <[email protected]>2014-01-13 15:41:43 -0800
commit1b49bd5d72d012cd349c29822fd6985bb4e5a158 (patch)
treea01e23e78d0b04eb7092c181419607d6697f5527 /src/textprop.c
parent7199b6d4f8e8133459e45985f1eb49b25038d317 (diff)
parent7d29a37a5bcd753536311b0aa87bdbb317eed42b (diff)
Correctly handle reaching the end of the interval tree. (Bug#15344)
Diffstat (limited to 'src/textprop.c')
-rw-r--r--src/textprop.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/textprop.c b/src/textprop.c
index 3fff8c42b3..67f517182e 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -1741,6 +1741,19 @@ Return t if any property was actually removed, nil otherwise. */)
}
len -= LENGTH (i);
i = next_interval (i);
+ if(!i)
+ {
+ if (modified)
+ {
+ if (BUFFERP (object))
+ signal_after_change (XINT (start),
+ XINT (end) - XINT (start),
+ XINT (end) - XINT (start));
+ return Qt;
+ }
+ else
+ return Qnil;
+ }
}
}