aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/buffer.c b/src/buffer.c
index f3532a86189..5398414e6eb 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2308,7 +2308,7 @@ advance_to_char_boundary (ptrdiff_t byte_pos)
2308 c = FETCH_BYTE (byte_pos); 2308 c = FETCH_BYTE (byte_pos);
2309 } 2309 }
2310 while (! CHAR_HEAD_P (c) && byte_pos > BEG); 2310 while (! CHAR_HEAD_P (c) && byte_pos > BEG);
2311 INC_POS (byte_pos); 2311 byte_pos += next_char_len (byte_pos);
2312 if (byte_pos < orig_byte_pos) 2312 if (byte_pos < orig_byte_pos)
2313 byte_pos = orig_byte_pos; 2313 byte_pos = orig_byte_pos;
2314 /* If C is a constituent of a multibyte sequence, BYTE_POS was 2314 /* If C is a constituent of a multibyte sequence, BYTE_POS was
@@ -2552,8 +2552,6 @@ current buffer is cleared. */)
2552 p = BEG_ADDR; 2552 p = BEG_ADDR;
2553 while (1) 2553 while (1)
2554 { 2554 {
2555 int c, bytes;
2556
2557 if (pos == stop) 2555 if (pos == stop)
2558 { 2556 {
2559 if (pos == Z) 2557 if (pos == Z)
@@ -2565,7 +2563,7 @@ current buffer is cleared. */)
2565 p++, pos++; 2563 p++, pos++;
2566 else if (CHAR_BYTE8_HEAD_P (*p)) 2564 else if (CHAR_BYTE8_HEAD_P (*p))
2567 { 2565 {
2568 c = STRING_CHAR_AND_LENGTH (p, bytes); 2566 int bytes, c = string_char_and_length (p, &bytes);
2569 /* Delete all bytes for this 8-bit character but the 2567 /* Delete all bytes for this 8-bit character but the
2570 last one, and change the last one to the character 2568 last one, and change the last one to the character
2571 code. */ 2569 code. */
@@ -2582,7 +2580,7 @@ current buffer is cleared. */)
2582 } 2580 }
2583 else 2581 else
2584 { 2582 {
2585 bytes = BYTES_BY_CHAR_HEAD (*p); 2583 int bytes = BYTES_BY_CHAR_HEAD (*p);
2586 p += bytes, pos += bytes; 2584 p += bytes, pos += bytes;
2587 } 2585 }
2588 } 2586 }