aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
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 {