]> code.delx.au - gnu-emacs/commit
Fix display of cursor at end of empty lines
authorEli Zaretskii <eliz@gnu.org>
Sat, 30 May 2015 09:33:08 +0000 (12:33 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 30 May 2015 09:33:08 +0000 (12:33 +0300)
commitba5f83dfe5dea1b9dd3fca5d21384afc92cd2060
treebf55bb0fd8a2fcdd59636ff5108bf11f1315f89b
parent42a7b12bc774e1e211204f90aed77c9ca6ffd158
Fix display of cursor at end of empty lines

* src/xdisp.c (normal_char_ascent_descent): Accept additional
argument: the character to use for metrics in case the font
declares too large ascent and descent values.  Add 1 pixel to
ascent and descent values.
(normal_char_height): Accept additional argument: the character to
use for metrics in case the font declares too large height value.
Call normal_char_ascent_descent instead of doing calculations for
a different default character.
(estimate_mode_line_height, handle_single_display_spec)
(calc_pixel_width_or_height, produce_stretch_glyph)
(calc_line_height_property, produce_glyphless_glyph): All callers
changed.
(append_space_for_newline): Make sure the space glyph produced at
end of line has correct ascent and descent values, and the glyph
row has correct height, even when it's empty.
src/xdisp.c