diff options
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/coding.c b/src/coding.c index 74cf232cfb2..a2ea9b302cf 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -8755,6 +8755,7 @@ to the string. */) | |||
| 8755 | } | 8755 | } |
| 8756 | 8756 | ||
| 8757 | positions = Qnil; | 8757 | positions = Qnil; |
| 8758 | charset_map_loaded = 0; | ||
| 8758 | while (1) | 8759 | while (1) |
| 8759 | { | 8760 | { |
| 8760 | int c; | 8761 | int c; |
| @@ -8782,6 +8783,16 @@ to the string. */) | |||
| 8782 | } | 8783 | } |
| 8783 | 8784 | ||
| 8784 | from++; | 8785 | from++; |
| 8786 | if (charset_map_loaded && NILP (string)) | ||
| 8787 | { | ||
| 8788 | p = CHAR_POS_ADDR (from); | ||
| 8789 | pend = CHAR_POS_ADDR (to); | ||
| 8790 | if (from < GPT && to >= GPT) | ||
| 8791 | stop = GPT_ADDR; | ||
| 8792 | else | ||
| 8793 | stop = pend; | ||
| 8794 | charset_map_loaded = 0; | ||
| 8795 | } | ||
| 8785 | } | 8796 | } |
| 8786 | 8797 | ||
| 8787 | return (NILP (count) ? Fcar (positions) : Fnreverse (positions)); | 8798 | return (NILP (count) ? Fcar (positions) : Fnreverse (positions)); |