Commit fa9090b8 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(Ffind_composition_internal): Accept ZV

and a string's end position as POS.
parent 04d0b662
2001-06-19 Gerd Moellmann <gerd@gnu.org>
* composite.c (Ffind_composition_internal): Accept ZV
and a string's end position as POS.
2001-06-18 Gerd Moellmann <gerd@gnu.org>
* composite.c (Ffind_composition_internal): Check POS
......
......@@ -782,12 +782,12 @@ See `find-composition' for more detail.")
if (!NILP (string))
{
CHECK_STRING (string, 2);
if (XINT (pos) < 0 || XINT (pos) >= XSTRING (string)->size)
if (XINT (pos) < 0 || XINT (pos) > XSTRING (string)->size)
args_out_of_range (string, pos);
}
else
{
if (XINT (pos) < BEGV || XINT (pos) >= ZV)
if (XINT (pos) < BEGV || XINT (pos) > ZV)
args_out_of_range (Fcurrent_buffer (), pos);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment