]> git.eshelyaron.com Git - emacs.git/commitdiff
(Funencodable_char_position): Set pend correctly.
authorKenichi Handa <handa@m17n.org>
Fri, 13 Dec 2002 02:35:51 +0000 (02:35 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 13 Dec 2002 02:35:51 +0000 (02:35 +0000)
src/coding.c

index fcb1d630cdbab449b95c98bb5c2c55c56953b8bf..577a1b446917765972caa154bca2068babf8b0d5 100644 (file)
@@ -6569,7 +6569,10 @@ to the string.  */)
       if (NILP (current_buffer->enable_multibyte_characters))
        return Qnil;
       p = CHAR_POS_ADDR (from);
-      pend = CHAR_POS_ADDR (to);
+      if (to == GPT)
+       pend = GPT_ADDR;
+      else
+       pend = CHAR_POS_ADDR (to);
     }
   else
     {