diff options
| author | Kenichi Handa | 2001-01-19 23:38:06 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2001-01-19 23:38:06 +0000 |
| commit | e1e40b38d1a8968beaac5355d66736be5ac3ff73 (patch) | |
| tree | b024a515bb334695e3b42b5a16397f40ab268c8a | |
| parent | 7173eadaf1fd677aeba2bdf340fe5a5b1f82b80f (diff) | |
| download | emacs-e1e40b38d1a8968beaac5355d66736be5ac3ff73.tar.gz emacs-e1e40b38d1a8968beaac5355d66736be5ac3ff73.zip | |
(Fformat): Use lisp_string_width instead of strwidth.
| -rw-r--r-- | src/editfns.c | 3 |
1 files changed, 1 insertions, 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.") | |||
| 3311 | if (STRINGP (args[n])) | 3311 | if (STRINGP (args[n])) |
| 3312 | { | 3312 | { |
| 3313 | int padding, nbytes; | 3313 | int padding, nbytes; |
| 3314 | int width = strwidth (XSTRING (args[n])->data, | 3314 | int width = lisp_string_width (args[n], -1, NULL, NULL); |
| 3315 | STRING_BYTES (XSTRING (args[n]))); | ||
| 3316 | int start = nchars; | 3315 | int start = nchars; |
| 3317 | 3316 | ||
| 3318 | /* If spec requires it, pad on right with spaces. */ | 3317 | /* If spec requires it, pad on right with spaces. */ |