Fix ‘format’ bug with property offsets
* src/editfns.c (styled_format): Fix recently-introduced ‘format’ bug in calculating string property offsets (Bug#21351).
This commit is contained in:
parent
2934c21f2d
commit
f33c164123
1 changed files with 6 additions and 2 deletions
|
@ -4013,10 +4013,14 @@ styled_format (ptrdiff_t nargs, Lisp_Object *args, bool message)
|
|||
error ("Format string ends in middle of format specifier");
|
||||
|
||||
memset (&discarded[format0 - format_start], 1, format - format0);
|
||||
conversion = *format++;
|
||||
conversion = *format;
|
||||
if (conversion == '%')
|
||||
goto copy_char;
|
||||
{
|
||||
format++;
|
||||
goto copy_char;
|
||||
}
|
||||
discarded[format - format_start] = 1;
|
||||
format++;
|
||||
|
||||
++n;
|
||||
if (! (n < nargs))
|
||||
|
|
Loading…
Add table
Reference in a new issue