summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/textprop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textprop.c b/src/textprop.c
index a95b9a9af5d..6c317063d6d 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -1010,7 +1010,7 @@ containing the text.")
XSET (object, Lisp_Buffer, current_buffer);
i = validate_interval_range (object, &start, &end, soft);
if (NULL_INTERVAL_P (i))
- return (NILP (value) || EQ (start, end)) ? Qnil : Qt;
+ return (NILP (value) || EQ (start, end)) ? Qnil : start;
s = XINT (start);
e = XINT (end);