Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b4c3ca09
Commit
b4c3ca09
authored
Sep 07, 2000
by
Gerd Moellmann
Browse files
(smaller_face): Compare font heights with `<' and `>'
instead of `!='.
parent
dbcee71a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/xfaces.c
src/xfaces.c
+2
-1
No files found.
src/xfaces.c
View file @
b4c3ca09
...
...
@@ -5329,7 +5329,8 @@ smaller_face (f, face_id, steps)
new_face = FACE_FROM_ID (f, new_face_id);
/* If height changes, count that as one step. */
if (FONT_HEIGHT (new_face->font) != last_height)
if ((delta < 0 && FONT_HEIGHT (new_face->font) < last_height)
|| (delta > 0 && FONT_HEIGHT (new_face->font) > last_height))
{
--steps;
last_height = FONT_HEIGHT (new_face->font);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment