aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/coding.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/coding.c b/src/coding.c
index 6973a6d8e8e..4b70b259314 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -3967,6 +3967,9 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace)
3967 unsigned char *src, *dst; 3967 unsigned char *src, *dst;
3968 Lisp_Object deletion = Qnil; 3968 Lisp_Object deletion = Qnil;
3969 3969
3970 if (from < PT && PT < to)
3971 SET_PT_BOTH (from, from_byte);
3972
3970 if (replace) 3973 if (replace)
3971 { 3974 {
3972 int saved_from = from; 3975 int saved_from = from;