diff options
| author | Richard M. Stallman | 1997-05-18 20:18:16 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-05-18 20:18:16 +0000 |
| commit | acc35c361fa20cd41212fd376173c7cc3b8e62ac (patch) | |
| tree | 24b454ffc5353aa0deef78b2aec2c12df8d02383 /src | |
| parent | ca05f195e8994fcfdfc63a523ee7abe0970859f6 (diff) | |
| download | emacs-acc35c361fa20cd41212fd376173c7cc3b8e62ac.tar.gz emacs-acc35c361fa20cd41212fd376173c7cc3b8e62ac.zip | |
(strwidth): Fix previous change.
Diffstat (limited to 'src')
| -rw-r--r-- | src/charset.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/charset.c b/src/charset.c index e88d1839b20..8518cc8829d 100644 --- a/src/charset.c +++ b/src/charset.c | |||
| @@ -811,7 +811,10 @@ strwidth (str, len) | |||
| 811 | int c = STRING_CHAR (str, endp - str); | 811 | int c = STRING_CHAR (str, endp - str); |
| 812 | 812 | ||
| 813 | /* Get the way the display table would display it. */ | 813 | /* Get the way the display table would display it. */ |
| 814 | disp = DISP_CHAR_VECTOR (dp, c); | 814 | if (dp) |
| 815 | disp = DISP_CHAR_VECTOR (dp, c); | ||
| 816 | else | ||
| 817 | disp = Qnil; | ||
| 815 | 818 | ||
| 816 | if (VECTORP (disp)) | 819 | if (VECTORP (disp)) |
| 817 | thiswidth = XVECTOR (disp)->size; | 820 | thiswidth = XVECTOR (disp)->size; |