mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-04 11:40:22 +00:00
(Fformat): Use lisp_string_width instead of strwidth.
This commit is contained in:
parent
7173eadaf1
commit
e1e40b38d1
@ -3311,8 +3311,7 @@ Use %% to put a single % into the output.")
|
|||||||
if (STRINGP (args[n]))
|
if (STRINGP (args[n]))
|
||||||
{
|
{
|
||||||
int padding, nbytes;
|
int padding, nbytes;
|
||||||
int width = strwidth (XSTRING (args[n])->data,
|
int width = lisp_string_width (args[n], -1, NULL, NULL);
|
||||||
STRING_BYTES (XSTRING (args[n])));
|
|
||||||
int start = nchars;
|
int start = nchars;
|
||||||
|
|
||||||
/* If spec requires it, pad on right with spaces. */
|
/* If spec requires it, pad on right with spaces. */
|
||||||
|
Loading…
Reference in New Issue
Block a user