1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-01 11:14:55 +00:00

(Fformat): Use lisp_string_width instead of strwidth.

This commit is contained in:
Kenichi Handa 2001-01-19 23:38:06 +00:00
parent 7173eadaf1
commit e1e40b38d1

View File

@ -3311,8 +3311,7 @@ Use %% to put a single % into the output.")
if (STRINGP (args[n]))
{
int padding, nbytes;
int width = strwidth (XSTRING (args[n])->data,
STRING_BYTES (XSTRING (args[n])));
int width = lisp_string_width (args[n], -1, NULL, NULL);
int start = nchars;
/* If spec requires it, pad on right with spaces. */