aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorKenichi Handa2002-12-13 02:35:51 +0000
committerKenichi Handa2002-12-13 02:35:51 +0000
commit200c93e2af65f4fa433416b91d4a8d34209d80f3 (patch)
treeeab974910c6d4a14a1ffa306fc7de85b4390aef3 /src/coding.c
parentb8c6225c281e8fff8a7f2132462beb6b1ac4253b (diff)
downloademacs-200c93e2af65f4fa433416b91d4a8d34209d80f3.tar.gz
emacs-200c93e2af65f4fa433416b91d4a8d34209d80f3.zip
(Funencodable_char_position): Set pend correctly.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c
index fcb1d630cdb..577a1b44691 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -6569,7 +6569,10 @@ to the string. */)
6569 if (NILP (current_buffer->enable_multibyte_characters)) 6569 if (NILP (current_buffer->enable_multibyte_characters))
6570 return Qnil; 6570 return Qnil;
6571 p = CHAR_POS_ADDR (from); 6571 p = CHAR_POS_ADDR (from);
6572 pend = CHAR_POS_ADDR (to); 6572 if (to == GPT)
6573 pend = GPT_ADDR;
6574 else
6575 pend = CHAR_POS_ADDR (to);
6573 } 6576 }
6574 else 6577 else
6575 { 6578 {