From e1e40b38d1a8968beaac5355d66736be5ac3ff73 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 19 Jan 2001 23:38:06 +0000 Subject: [PATCH] (Fformat): Use lisp_string_width instead of strwidth. --- src/editfns.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/editfns.c b/src/editfns.c index c431be1161a..1871c54d2b7 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -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. */ -- 2.39.2