X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fxemacs-chise.git.1;a=blobdiff_plain;f=src%2Fredisplay.c;h=796799927833281fb66f242faa89fe9cd1ff31c4;hp=9993ecb275a5aa42247cf30a22d78865512184a3;hb=efdb31fd4c8db81d2414c32d491f1bf994263c74;hpb=75d621fb12f4d3bc3e2eecefac39fe62eecbd431 diff --git a/src/redisplay.c b/src/redisplay.c index 9993ecb..7967999 100644 --- a/src/redisplay.c +++ b/src/redisplay.c @@ -972,6 +972,8 @@ add_bufbyte_string_runes (pos_data *data, Bufbyte *c_string, for (pos = c_string; pos < end;) { + Bufbyte *old_pos = pos; + data->ch = charptr_emchar (pos); prop = add_emchar_rune (data); @@ -997,6 +999,9 @@ add_bufbyte_string_runes (pos_data *data, Bufbyte *c_string, } INC_CHARPTR (pos); assert (pos <= end); + /* #### Duplicate code from add_string_to_fstring_db_runes + should we do more?*/ + data->bytepos += pos - old_pos; } return NULL;