From: Gerd Moellmann Date: Tue, 19 Jun 2001 11:30:53 +0000 (+0000) Subject: (Ffind_composition_internal): Accept ZV X-Git-Tag: emacs-pretest-21.0.104~213 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fa9090b8f4da448c42a863e5f08dfadd06eb5fc0;p=emacs.git (Ffind_composition_internal): Accept ZV and a string's end position as POS. --- diff --git a/src/ChangeLog b/src/ChangeLog index cf792aaf215..dcaae37ad7e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-06-19 Gerd Moellmann + + * composite.c (Ffind_composition_internal): Accept ZV + and a string's end position as POS. + 2001-06-18 Gerd Moellmann * composite.c (Ffind_composition_internal): Check POS diff --git a/src/composite.c b/src/composite.c index 6db705cec4e..c18d8eb749c 100644 --- a/src/composite.c +++ b/src/composite.c @@ -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); }