mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-06-14 12:31:25 +00:00
; Fix an issue with counting glyphs on TTY frames
* src/dispnew.c (fake_current_matrices): Fix the 'used' count of glyphs for the right margin and the text-area. (Bug#80900)
This commit is contained in:
parent
25659d5a75
commit
0d0891c1bb
1 changed files with 5 additions and 0 deletions
|
|
@ -1937,6 +1937,11 @@ fake_current_matrices (Lisp_Object window)
|
|||
{
|
||||
r->used[LEFT_MARGIN_AREA] = m->left_margin_glyphs;
|
||||
r->used[RIGHT_MARGIN_AREA] = m->right_margin_glyphs;
|
||||
/* Non-rightmost windows have the border glyph at the
|
||||
end of the right margin, if any, in addition to the
|
||||
glyphs reserved for the margin itself. */
|
||||
if (m->right_margin_glyphs > 0 && !WINDOW_RIGHTMOST_P (w))
|
||||
r->used[RIGHT_MARGIN_AREA]++;
|
||||
r->used[TEXT_AREA] = (m->matrix_w
|
||||
- r->used[LEFT_MARGIN_AREA]
|
||||
- r->used[RIGHT_MARGIN_AREA]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue