]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fformat): Use lisp_string_width instead of strwidth.
authorKenichi Handa <handa@m17n.org>
Fri, 19 Jan 2001 23:38:06 +0000 (23:38 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 19 Jan 2001 23:38:06 +0000 (23:38 +0000)
src/editfns.c

index c431be1161a0441067aaab41e678e861e9501710..1871c54d2b7044a2a922ff411809add4198c34a7 100644 (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.  */