diff options
| author | Eli Zaretskii | 2012-07-07 19:36:02 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2012-07-07 19:36:02 +0300 |
| commit | 58dd0aa4c5a1e67d5b78a14e98b9da1a1433fbb4 (patch) | |
| tree | 6f388bcf243d9a45882532bd1e196604ca78c961 /src/term.c | |
| parent | 8a70567414af07cb4c12505c87c08b7a9b7de973 (diff) | |
| download | emacs-58dd0aa4c5a1e67d5b78a14e98b9da1a1433fbb4.tar.gz emacs-58dd0aa4c5a1e67d5b78a14e98b9da1a1433fbb4.zip | |
Fix bug #11832 with truncated lines when fringes are disabled on GUI frames.
src/xdisp.c (init_iterator): Get dimensions of truncation and
continuation glyphs even if on GUI frames. Adjust
it->last_visible_x on GUI frames when the left or right fringes,
or both, are absent.
(start_display, move_it_in_display_line_to): Handle the case of a
GUI frame without a fringe to display continuation or truncation
glyphs.
(insert_left_trunc_glyphs): Support GUI frames: make sure
truncation glyphs overwrite enough glyphs from the current line to
have sufficient space in pixels.
(display_line): Support truncation and continuation glyphs on GUI
frames. If some spare pixels are left on the line after inserting
the truncation glyphs, fill that space with a stretch glyph of a
suitably computed width.
src/term.c (produce_special_glyphs): Call PRODUCE_GLYPHS, not
produce_glyphs, to support GUI sessions.
Diffstat (limited to 'src/term.c')
| -rw-r--r-- | src/term.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/term.c b/src/term.c index 5e48cbbfc64..900818559cd 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -1940,7 +1940,7 @@ produce_special_glyphs (struct it *it, enum display_element_type what) | |||
| 1940 | temp_it.face_id = GLYPH_FACE (glyph); | 1940 | temp_it.face_id = GLYPH_FACE (glyph); |
| 1941 | temp_it.len = CHAR_BYTES (temp_it.c); | 1941 | temp_it.len = CHAR_BYTES (temp_it.c); |
| 1942 | 1942 | ||
| 1943 | produce_glyphs (&temp_it); | 1943 | PRODUCE_GLYPHS (&temp_it); |
| 1944 | it->pixel_width = temp_it.pixel_width; | 1944 | it->pixel_width = temp_it.pixel_width; |
| 1945 | it->nglyphs = temp_it.pixel_width; | 1945 | it->nglyphs = temp_it.pixel_width; |
| 1946 | } | 1946 | } |