vstr: Forward actual field width
fmt_field_width is a flag that indicates if a field width is defined in obj_field_width.
This commit is contained in:
@@ -144,7 +144,7 @@ static int custom_fmt_cb(Vstr_base *base, size_t pos, Vstr_fmt_spec *fmt_spec)
|
||||
spec.hash = fmt_spec->fmt_hash;
|
||||
spec.plus = fmt_spec->fmt_plus;
|
||||
spec.minus = fmt_spec->fmt_minus;
|
||||
spec.width = fmt_spec->fmt_field_width;
|
||||
spec.width = fmt_spec->obj_field_width;
|
||||
|
||||
handler->hook(&data, &spec, args);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user