projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31a6a37
)
* src/macfont.m (macfont_open): Initialize font->space_width. (Bug#56808)
author
YAMAMOTO Mitsuharu
<mituharu@math.s.chiba-u.ac.jp>
Sat, 30 Jul 2022 08:21:54 +0000
(17:21 +0900)
committer
YAMAMOTO Mitsuharu
<mituharu@math.s.chiba-u.ac.jp>
Sat, 30 Jul 2022 08:21:54 +0000
(17:21 +0900)
src/macfont.m
patch
|
blob
|
history
diff --git
a/src/macfont.m
b/src/macfont.m
index e3dab1c42e018c9aa57f2902ff2dccbcb9daf373..b30c3c9763c1d37e8477f1602c0af610cf88f9f0 100644
(file)
--- a/
src/macfont.m
+++ b/
src/macfont.m
@@
-2628,6
+2628,9
@@
macfont_open (struct frame * f, Lisp_Object entity, int pixel_size)
font->pixel_size = size;
font->driver = &macfont_driver;
font->encoding_charset = font->repertory_charset = -1;
+ /* Clear font->space_width so macfont_monospace_width_multiplier may
+ not be confused by an uninitialized value. */
+ font->space_width = 0;
block_input ();