diff options
Diffstat (limited to 'src/editfns.c')
| -rw-r--r-- | src/editfns.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/editfns.c b/src/editfns.c index 093f141bff2..9f30ea06411 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -3782,7 +3782,11 @@ usage: (format STRING &rest OBJECTS) */) | |||
| 3782 | to be as large as is calculated here. Easy check for | 3782 | to be as large as is calculated here. Easy check for |
| 3783 | the case PRECISION = 0. */ | 3783 | the case PRECISION = 0. */ |
| 3784 | thissize = precision[n] ? CONVERTED_BYTE_SIZE (multibyte, args[n]) : 0; | 3784 | thissize = precision[n] ? CONVERTED_BYTE_SIZE (multibyte, args[n]) : 0; |
| 3785 | /* The precision also constrains how much of the argument | ||
| 3786 | string will finally appear (Bug#5710). */ | ||
| 3785 | actual_width = lisp_string_width (args[n], -1, NULL, NULL); | 3787 | actual_width = lisp_string_width (args[n], -1, NULL, NULL); |
| 3788 | if (precision[n] != -1) | ||
| 3789 | actual_width = min(actual_width,precision[n]); | ||
| 3786 | } | 3790 | } |
| 3787 | /* Would get MPV otherwise, since Lisp_Int's `point' to low memory. */ | 3791 | /* Would get MPV otherwise, since Lisp_Int's `point' to low memory. */ |
| 3788 | else if (INTEGERP (args[n]) && *format != 's') | 3792 | else if (INTEGERP (args[n]) && *format != 's') |