aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1997-05-18 20:18:16 +0000
committerRichard M. Stallman1997-05-18 20:18:16 +0000
commitacc35c361fa20cd41212fd376173c7cc3b8e62ac (patch)
tree24b454ffc5353aa0deef78b2aec2c12df8d02383 /src
parentca05f195e8994fcfdfc63a523ee7abe0970859f6 (diff)
downloademacs-acc35c361fa20cd41212fd376173c7cc3b8e62ac.tar.gz
emacs-acc35c361fa20cd41212fd376173c7cc3b8e62ac.zip
(strwidth): Fix previous change.
Diffstat (limited to 'src')
-rw-r--r--src/charset.c5
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;