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:
Tobias Brunner
2013-10-11 15:12:16 +02:00
parent fc566632da
commit 3473cbab9c
@@ -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);